mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
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.
This commit is contained in:
parent
51f8196d05
commit
00ffc4513d
8 changed files with 9 additions and 90 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue