mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 02:27:45 +00:00
Merge pull request #241 from Gachapen/fix_fileno
Fix fileno causing compile error when #defined
This commit is contained in:
commit
3bc97a5564
5
posix.cc
5
posix.cc
@ -55,11 +55,14 @@
|
|||||||
|
|
||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
# define _SH_DENYNO 0x40
|
# define _SH_DENYNO 0x40
|
||||||
# undef fileno
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
|
#ifdef fileno
|
||||||
|
# undef fileno
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Return type of read and write functions.
|
// Return type of read and write functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user