From b9b847008d85a692278be743200ef824bbb1ce66 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sat, 23 Mar 2019 01:47:38 +0300 Subject: [PATCH] Fix hypot issue on MinGW --- include/boost/python/detail/wrap_python.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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__)