2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 04:22:16 +00:00

The right hypot fix for MinGW

This commit is contained in:
Nikita Kniazev
2019-03-26 21:02:08 +03:00
committed by Stefan Seefeld
parent 0d0cd711a7
commit 0b0c0536d6

View File

@@ -47,6 +47,13 @@
# endif
#endif
// pyconfig.h defines a macro with hypot name, what breaks libstdc++ math headers
// that Python.h tries to include afterwards.
#if defined(__MINGW32__)
# include <cmath>
# include <math.h>
#endif
# include <pyconfig.h>
# if defined(_SGI_COMPILER_VERSION) && _SGI_COMPILER_VERSION >= 740
# undef _POSIX_C_SOURCE
@@ -84,12 +91,6 @@
//
#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__)