check for NOMINMAX issue on windows (fixes #291)

This commit is contained in:
Wenzel Jakob 2016-07-19 17:47:59 +02:00
parent a975ab2501
commit a771e362df

View File

@ -49,7 +49,11 @@
#include <frameobject.h>
#include <pythread.h>
#ifdef isalnum
#if defined(_WIN32) && (defined(min) || defined(max))
# error Macro clash with min and max -- define NOMINMAX when compiling your program on Windows
#endif
#if defined(isalnum)
# undef isalnum
# undef isalpha
# undef islower