From c2ffa146841535080a3483471fd9eec77c119c36 Mon Sep 17 00:00:00 2001 From: Magnus Bjerke Vik Date: Thu, 3 Dec 2015 23:21:42 +0100 Subject: [PATCH] Fix fileno causing compile error when #defined Error: expected unqualified-id before '(' token int fmt::BufferedFile::fileno() const { This is an issue with Android NDK and mingw32. --- posix.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posix.cc b/posix.cc index d36871f4..756281a0 100644 --- a/posix.cc +++ b/posix.cc @@ -55,11 +55,14 @@ # ifdef __MINGW32__ # define _SH_DENYNO 0x40 -# undef fileno # endif #endif // _WIN32 +#ifdef fileno +# undef fileno +#endif + namespace { #ifdef _WIN32 // Return type of read and write functions.