mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Prevent NEAR and FAR macro definitions from leaking on Windows platforms
This commit is contained in:
parent
84809db955
commit
ac7821f9bf
@ -32,6 +32,10 @@
|
||||
#include <process.h> // _get_pid support
|
||||
#include <windows.h>
|
||||
|
||||
// windows.h leaks NEAR and FAR macros, prevent those from leaking further
|
||||
#undef NEAR
|
||||
#undef FAR
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <share.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user