add #define NOMINMAX before windows.h includes

This commit is contained in:
jacob1 2018-05-17 21:49:46 -04:00
parent e8373ffa4c
commit 38fac7046a
3 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <cstdio>
#include <cassert>
#ifdef WIN
#define NOMINMAX
#include <shlobj.h>
#include <shlwapi.h>
#include <windows.h>

View File

@ -10,6 +10,7 @@
#include <stdint.h>
#ifdef WIN
#define NOMINMAX
#include <windows.h>
#else
#include <unistd.h>

View File

@ -15,6 +15,7 @@
#endif
#ifdef WIN
#define NOMINMAX
#include <shlobj.h>
#include <shlwapi.h>
#include <windows.h>