mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Merge pull request #78 from ax3l/fix-complexGlibc
Fix #75 <complex> may define macro I
This commit is contained in:
commit
d1f4d3ea91
@ -12,6 +12,11 @@
|
||||
#include "pybind11.h"
|
||||
#include <complex>
|
||||
|
||||
/// glibc defines I as a macro which breaks things, e.g., boost template names
|
||||
#ifdef I
|
||||
# undef I
|
||||
#endif
|
||||
|
||||
NAMESPACE_BEGIN(pybind11)
|
||||
|
||||
PYBIND11_DECL_FMT(std::complex<float>, "Zf");
|
||||
|
Loading…
Reference in New Issue
Block a user