mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-29 02:23:27 +08: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 <frameobject.h>
|
||||||
#include <pythread.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 isalnum
|
||||||
# undef isalpha
|
# undef isalpha
|
||||||
# undef islower
|
# undef islower
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user