mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 09:20:25 +08:00
fix issue #189 spdlog redefines max as a preprocessor macro
This commit is contained in:
parent
e5376c3c0f
commit
cd90e3911e
@ -12,6 +12,11 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
# ifndef NOMINMAX
|
||||||
|
#define NOMINMAX //prevent windows redefining min/max
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifndef WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user