#undef WIN32_LEAN_AND_MEAN if it was not dedfined before spdlog defined it

This commit is contained in:
gabime 2014-12-19 21:31:37 +02:00
parent a50e7ed61e
commit e9dc0d2196

View File

@ -27,10 +27,18 @@
#include<string>
#include<cstdio>
#include<ctime>
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
#undef WIN32_LEAN_AND_MEAN
#else
#include <Windows.h>
#endif
#endif //_WIN32
namespace spdlog
{