We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1376eb0 commit b4e5d58Copy full SHA for b4e5d58
include/pybind11/detail/common.h
@@ -113,6 +113,9 @@
113
#include <frameobject.h>
114
#include <pythread.h>
115
116
+/* Python #defines overrides on all sorts of core functions, which
117
+ tends to weak havok in C++ codebases that expect these to work
118
+ like regular functions (potentially with several overloads) */
119
#if defined(isalnum)
120
# undef isalnum
121
# undef isalpha
@@ -123,6 +126,10 @@
123
126
# undef toupper
124
127
#endif
125
128
129
+#if defined(copysign)
130
+# undef copysign
131
+#endif
132
+
133
#if defined(_MSC_VER)
134
# if defined(PYBIND11_DEBUG_MARKER)
135
# define _DEBUG
0 commit comments