Skip to content

Commit 1f1b9b6

Browse files
Kojoleystefanseefeld
authored andcommitted
Fix hypot issue on MinGW
1 parent 6bd6d71 commit 1f1b9b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/boost/python/detail/wrap_python.hpp

+7
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
8383
// than MSVC on Win32
8484
//
8585
#if defined(_WIN32) || defined(__CYGWIN__)
86+
87+
// Python.h defines a macro with hypot name, what breaks libstdc++ math header
88+
// that it tries to include afterwards.
89+
# if defined(__MINGW32__)
90+
# include <cmath>
91+
# endif
92+
8693
# if defined(__GNUC__) && defined(__CYGWIN__)
8794

8895
# if defined(__LP64__)

0 commit comments

Comments
 (0)