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