mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 18:39:03 +08:00
only include windows.h when it's unavoidable
This commit is contained in:
@@ -8,6 +8,15 @@
|
||||
#include <spdlog/details/null_mutex.h>
|
||||
#include <spdlog/sinks/base_sink.h>
|
||||
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX // prevent windows redefining min/max
|
||||
#endif
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <winbase.h>
|
||||
|
||||
#include <mutex>
|
||||
|
Reference in New Issue
Block a user