Skip to content

Commit

Permalink
Fix hypot issue on MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojoley authored and stefanseefeld committed Mar 24, 2019
1 parent 6bd6d71 commit 1f1b9b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/boost/python/detail/wrap_python.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cmath>
# endif

# if defined(__GNUC__) && defined(__CYGWIN__)

# if defined(__LP64__)
Expand Down

0 comments on commit 1f1b9b6

Please sign in to comment.