mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
undo #define copysign in pyconfig.h
This commit is contained in:
parent
1376eb0e51
commit
b4e5d582cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user