only include windows.h when it's unavoidable

This commit is contained in:
Dávid Bodor
2020-02-25 13:51:43 +01:00
parent 64de8807e2
commit 6e763d2776
4 changed files with 28 additions and 12 deletions

View File

@@ -15,18 +15,6 @@
#include <type_traits>
#include <functional>
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX // prevent windows redefining min/max
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif //_WIN32
#ifdef SPDLOG_COMPILED_LIB
#undef SPDLOG_HEADER_ONLY
#define SPDLOG_INLINE