Skip to content

Fix hypot issue on MinGW #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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