diff --git a/include/spdlog/details/console_globals.h b/include/spdlog/details/console_globals.h index 128003ea..e2afb6bf 100644 --- a/include/spdlog/details/console_globals.h +++ b/include/spdlog/details/console_globals.h @@ -9,7 +9,16 @@ #include #ifdef _WIN32 -#include "spdlog/details/os.h" + +#ifndef NOMINMAX +#define NOMINMAX // prevent windows redefining min/max +#endif + +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif + +#include #endif namespace spdlog {