diff --git a/include/boost/python/detail/wrap_python.hpp b/include/boost/python/detail/wrap_python.hpp index 481baa7842..c0748ddf00 100644 --- a/include/boost/python/detail/wrap_python.hpp +++ b/include/boost/python/detail/wrap_python.hpp @@ -83,6 +83,13 @@ // than MSVC on Win32 // #if defined(_WIN32) || defined(__CYGWIN__) + +// Python.h defines a macro with hypot name, what breaks libstdc++ math header +// that it tries to include afterwards. +# if defined(__MINGW32__) +# include +# endif + # if defined(__GNUC__) && defined(__CYGWIN__) # if defined(__LP64__)