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