]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
authorMatt McCormick <matt@mmmccormick.com>
Sat, 22 Dec 2018 01:41:36 +0000 (20:41 -0500)
committerINADA Naoki <methane@users.noreply.github.com>
Sat, 22 Dec 2018 01:41:36 +0000 (10:41 +0900)
commit000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f
tree0256f71116534961f860f4d1694121b14789a6ef
parentd9a2aca839b1326e011ecca17ba7b45123c47a64
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