From 23b7bfead06814a3417018a9a148c39ec68ba718 Mon Sep 17 00:00:00 2001 From: vitaut Date: Thu, 12 Mar 2015 08:29:28 -0700 Subject: [PATCH] More mingw fixes --- posix.cc | 3 +++ posix.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/posix.cc b/posix.cc index 945c796c..870cb848 100644 --- a/posix.cc +++ b/posix.cc @@ -55,6 +55,9 @@ # ifdef __MINGW32__ # define _SH_DENYNO 0x40 +# undef fileno +# endif + # endif #endif // _WIN32 diff --git a/posix.h b/posix.h index 16cf952a..5acf64c6 100644 --- a/posix.h +++ b/posix.h @@ -61,7 +61,7 @@ # define FMT_SYSTEM(call) call # ifdef _WIN32 // Fix warnings about deprecated symbols. -# define FMT_POSIX_CALL(call) (::_##call) +# define FMT_POSIX_CALL(call) ::_##call # else # define FMT_POSIX_CALL(call) ::call # endif