Added a #define for _NO_W32_PSEUDO_MODIFIERS so that windows.h won't #define IN or OUT

This commit is contained in:
Davis King 2014-04-22 20:52:26 -04:00
parent 2821926236
commit d635c1d78a
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@
#define NOMINMAX // prevent windows from messing with std::min and std::max
#endif
// Prevent windows from #defining IN or OUT
#ifndef _NO_W32_PSEUDO_MODIFIERS
#define _NO_W32_PSEUDO_MODIFIERS
#endif
// now just for good measure undefine min and max if they are defined
#ifdef min
#undef min