#4020 System : Define NOMINMAX before include of windows.h

This commit is contained in:
Magne Sjaastad
2019-01-31 20:31:14 +01:00
parent fc133c4475
commit 1a7de264ca
3 changed files with 12 additions and 0 deletions

View File

@@ -23,6 +23,10 @@
#ifdef WIN32
#pragma warning (push)
#pragma warning (disable: 4668)
// Define this one to tell windows.h to not define min() and max() as macros
#if defined WIN32 && !defined NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#pragma warning (pop)
#else