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));