summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 21:27:50 (GMT)
committerGitHub <noreply@github.com>2021-10-13 21:27:50 (GMT)
commit194a9526d8ee6abbbe58ef48520ec87a7e83f327 (patch)
treeff8b22ba8a475d7da5a5b5a6ca75316bd9d44c5d /PC/pyconfig.h
parentaac29af6785712019d34f1a7f15b3c408a4f68ae (diff)
downloadcpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.zip
cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.gz
cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.bz2
bpo-45440: Require math.h isinf() to build (GH-28894)
Building Python now requires a C99 <math.h> header file providing isinf(), isnan() and isfinite() functions. Remove the Py_FORCE_DOUBLE() macro. It was used by the Py_IS_INFINITY() macro. Changes: * Remove Py_IS_NAN(), Py_IS_INFINITY() and Py_IS_FINITE() in PC/pyconfig.h. * Remove the _Py_force_double() function. * configure no longer checks if math.h defines isinf(), isnan() and isfinite().
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 012a89a..7539777 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -189,11 +189,6 @@ typedef _W64 int Py_ssize_t;
typedef int pid_t;
-#include <float.h>
-#define Py_IS_NAN _isnan
-#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
-#define Py_IS_FINITE(X) _finite(X)
-
/* define some ANSI types that are not defined in earlier Win headers */
#if _MSC_VER >= 1200
/* This file only exists in VC 6.0 or higher */
@@ -358,15 +353,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define to 1 if you have the `round' function. */
#if _MSC_VER >= 1800
-#define HAVE_ROUND 1
+# define HAVE_ROUND 1
#endif
-/* Define to 1 if you have the `isinf' macro. */
-#define HAVE_DECL_ISINF 1
-
-/* Define to 1 if you have the `isnan' function. */
-#define HAVE_DECL_ISNAN 1
-
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */