diff --git a/include/pybind11/complex.h b/include/pybind11/complex.h index 10da21d02..a140f6feb 100644 --- a/include/pybind11/complex.h +++ b/include/pybind11/complex.h @@ -12,6 +12,11 @@ #include "pybind11.h" #include +/// 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, "Zf");