undo #define copysign in pyconfig.h

This commit is contained in:
Wenzel Jakob 2019-12-13 11:11:33 +01:00
parent 1376eb0e51
commit b4e5d582cb

View File

@ -113,6 +113,9 @@
#include <frameobject.h> #include <frameobject.h>
#include <pythread.h> #include <pythread.h>
/* Python #defines overrides on all sorts of core functions, which
tends to weak havok in C++ codebases that expect these to work
like regular functions (potentially with several overloads) */
#if defined(isalnum) #if defined(isalnum)
# undef isalnum # undef isalnum
# undef isalpha # undef isalpha
@ -123,6 +126,10 @@
# undef toupper # undef toupper
#endif #endif
#if defined(copysign)
# undef copysign
#endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
# if defined(PYBIND11_DEBUG_MARKER) # if defined(PYBIND11_DEBUG_MARKER)
# define _DEBUG # define _DEBUG