mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +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 <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)
|
||||
# undef isalnum
|
||||
# undef isalpha
|
||||
@ -123,6 +126,10 @@
|
||||
# undef toupper
|
||||
#endif
|
||||
|
||||
#if defined(copysign)
|
||||
# undef copysign
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# if defined(PYBIND11_DEBUG_MARKER)
|
||||
# define _DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user