From 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Fri, 21 Dec 2018 20:41:36 -0500 Subject: bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) This addresses C extension build errors related to an undefined _hypot symbol when building with the Microsoft Visual C++ Compiler for Python 2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++ extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not been declared' [1] https://www.microsoft.com/en-us/download/details.aspx?id=44266 [2] https://mingwpy.github.io/ --- PC/pyconfig.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 5d1c90a05f..5fa6398793 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -226,11 +226,6 @@ typedef int pid_t; #define Py_IS_FINITE(X) _finite(X) #define copysign _copysign -/* VS 2010 and above already defines hypot as _hypot */ -#if _MSC_VER < 1600 -#define hypot _hypot -#endif - #endif /* _MSC_VER */ /* define some ANSI types that are not defined in earlier Win headers */ @@ -282,7 +277,6 @@ typedef int pid_t; #endif #define COMPILER "[gcc]" -#define hypot _hypot #define PY_LONG_LONG long long #define PY_LLONG_MIN LLONG_MIN #define PY_LLONG_MAX LLONG_MAX -- cgit v1.2.1