summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-06 12:13:04 (GMT)
committerGitHub <noreply@github.com>2022-02-06 12:13:04 (GMT)
commit54842e4311bb0e34012d1984b42eab41eeeaea6a (patch)
tree78eabd2693540ebdc112a4fabc5edf4778a60a4a /Misc
parentf1e29cea8516d04c16d94bcb7bf24d4e2d32ffce (diff)
downloadcpython-54842e4311bb0e34012d1984b42eab41eeeaea6a.zip
cpython-54842e4311bb0e34012d1984b42eab41eeeaea6a.tar.gz
cpython-54842e4311bb0e34012d1984b42eab41eeeaea6a.tar.bz2
bpo-46640: Py_NAN now uses the C99 NAN constant (GH-31134)
Building Python now requires a C99 <math.h> header file providing a NAN constant, or the __builtin_nan() built-in function. If a platform does not support Not-a-Number (NaN), the Py_NO_NAN macro can be defined in the pyconfig.h file.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Build/2022-02-04-21-26-50.bpo-46640.HXUmQp.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2022-02-04-21-26-50.bpo-46640.HXUmQp.rst b/Misc/NEWS.d/next/Build/2022-02-04-21-26-50.bpo-46640.HXUmQp.rst
new file mode 100644
index 0000000..c738111
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-02-04-21-26-50.bpo-46640.HXUmQp.rst
@@ -0,0 +1,4 @@
+Building Python now requires a C99 ``<math.h>`` header file providing a ``NAN``
+constant, or the ``__builtin_nan()`` built-in function. If a platform does not
+support Not-a-Number (NaN), the ``Py_NO_NAN`` macro can be defined in the
+``pyconfig.h`` file. Patch by Victor Stinner.