From 92a1b16c36dddb7c1ed5a9d06e5cbb44bb1dc300 Mon Sep 17 00:00:00 2001 From: codicodi Date: Tue, 1 Nov 2016 23:33:44 +0100 Subject: [PATCH] Update posix.cc --- fmt/posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/posix.cc b/fmt/posix.cc index b3c26876..f4548b41 100644 --- a/fmt/posix.cc +++ b/fmt/posix.cc @@ -88,7 +88,7 @@ int u8open(fmt::CStringRef filename, int flags, int mode) { FMT_THROW(fmt::WindowsError(::GetLastError(), "couldn't convert filename to native encoding")); int fd = -1; - FMT_POSIX_CALL(wsopen_s(&fd, namebuff, flags, _SH_DENYNO, mode)); + FMT_SYSTEM(_wsopen_s(&fd, namebuff, flags, _SH_DENYNO, mode)); return fd; #else return FMT_POSIX_CALL(open(filename, flags, mode));