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
d1f4d3ea
Commit
d1f4d3ea
authored
Jan 21, 2016
by
Wenzel Jakob
Browse files
Merge pull request #78 from ax3l/fix-complexGlibc
Fix #75 <complex> may define macro I
parents
80a06745
30214adc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
include/pybind11/complex.h
include/pybind11/complex.h
+5
-0
No files found.
include/pybind11/complex.h
View file @
d1f4d3ea
...
@@ -12,6 +12,11 @@
...
@@ -12,6 +12,11 @@
#include "pybind11.h"
#include "pybind11.h"
#include <complex>
#include <complex>
/// glibc defines I as a macro which breaks things, e.g., boost template names
#ifdef I
# undef I
#endif
NAMESPACE_BEGIN
(
pybind11
)
NAMESPACE_BEGIN
(
pybind11
)
PYBIND11_DECL_FMT
(
std
::
complex
<
float
>
,
"Zf"
);
PYBIND11_DECL_FMT
(
std
::
complex
<
float
>
,
"Zf"
);
...
...
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