diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-15 17:45:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 17:45:34 (GMT) |
commit | 00ffc4513df7b89a168e88da4d1e3ac367f7682f (patch) | |
tree | e3b57e2fe5eab5bf559fe850a3a8ed070da2d3c0 /Include | |
parent | 51f8196d05f0e271358eee0f90fe044b20449fb5 (diff) | |
download | cpython-00ffc4513df7b89a168e88da4d1e3ac367f7682f.zip cpython-00ffc4513df7b89a168e88da4d1e3ac367f7682f.tar.gz cpython-00ffc4513df7b89a168e88da4d1e3ac367f7682f.tar.bz2 |
bpo-45440: Remove pymath.c fallbacks (GH-28977)
Remove fallbacks for missing round(), copysign() and hypot() in
Python/pymath.c. Python now requires these functions to build.
These fallbacks were needed on Visual Studio 2012 and older. They are
no longer needed since Visual Stuido 2013. Python is now built with
Visual Studio 2017 or newer since Python 3.6.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pymath.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Include/internal/pycore_pymath.h b/Include/internal/pycore_pymath.h index 32743fc..395b714 100644 --- a/Include/internal/pycore_pymath.h +++ b/Include/internal/pycore_pymath.h @@ -8,24 +8,6 @@ extern "C" { # error "this header requires Py_BUILD_CORE define" #endif - -// Python provides implementations for copysign(), round() and hypot() in -// Python/pymath.c just in case your math library doesn't provide the -// functions. -// -// Note: PC/pyconfig.h defines copysign as _copysign -#ifndef HAVE_COPYSIGN -extern double copysign(double, double); -#endif - -#ifndef HAVE_ROUND -extern double round(double); -#endif - -#ifndef HAVE_HYPOT -extern double hypot(double, double); -#endif - // Extra declarations #if !defined(_MSC_VER) && !defined(__STDC__) extern double fmod (double, double); |