From e9dc0d21966eb291432bed9ab14939a7ce9a523a Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 19 Dec 2014 21:31:37 +0200 Subject: [PATCH] #undef WIN32_LEAN_AND_MEAN if it was not dedfined before spdlog defined it --- include/spdlog/details/os.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 6829fd65..be834e2c 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -27,10 +27,18 @@ #include #include #include + #ifdef _WIN32 + +#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #include -#endif +#undef WIN32_LEAN_AND_MEAN +#else +#include +#endif + +#endif //_WIN32 namespace spdlog {