Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
b4e5d582
Commit
b4e5d582
authored
Dec 13, 2019
by
Wenzel Jakob
Browse files
undo #define copysign in pyconfig.h
parent
1376eb0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
include/pybind11/detail/common.h
include/pybind11/detail/common.h
+7
-0
No files found.
include/pybind11/detail/common.h
View file @
b4e5d582
...
@@ -113,6 +113,9 @@
...
@@ -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 @@
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment