[F] min/max redefined when including windows.h

pull/972/head^2
smalcom 2016-09-15 22:25:34 +03:00
parent a9284e5a95
commit dad4d0fa99
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ THE SOFTWARE.
#include "o3dgcCommon.h" #include "o3dgcCommon.h"
#ifdef WIN32 #ifdef WIN32
/* Thank you, Microsoft, for file WinDef.h with min/max redefinition. */
#define NOMINMAX
#include <windows.h> #include <windows.h>
#elif __MACH__ #elif __MACH__
#include <mach/clock.h> #include <mach/clock.h>