From cd90e3911ec7ca6cb9d9a04529f593531d6155b3 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 30 Mar 2016 18:46:25 +0300 Subject: [PATCH] fix issue #189 spdlog redefines max as a preprocessor macro --- include/spdlog/details/os.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index ac05a3b0..09fba05b 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -12,6 +12,11 @@ #include #ifdef _WIN32 + +# ifndef NOMINMAX +#define NOMINMAX //prevent windows redefining min/max +#endif + # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif