mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
check for NOMINMAX issue on windows (fixes #291)
This commit is contained in:
parent
a975ab2501
commit
a771e362df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user