]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)
authorSteve Dower <steve.dower@python.org>
Mon, 16 Nov 2020 23:22:42 +0000 (23:22 +0000)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 23:22:42 +0000 (23:22 +0000)
Misc/NEWS.d/next/Windows/2020-11-16-22-41-02.bpo-42120.9scgko.rst [new file with mode: 0644]
PC/pyconfig.h

diff --git a/Misc/NEWS.d/next/Windows/2020-11-16-22-41-02.bpo-42120.9scgko.rst b/Misc/NEWS.d/next/Windows/2020-11-16-22-41-02.bpo-42120.9scgko.rst
new file mode 100644 (file)
index 0000000..c574956
--- /dev/null
@@ -0,0 +1 @@
+Remove macro definition of ``copysign`` (to ``_copysign``) in headers.
index b29f63c35bccb19718b065811d8ee1309a6d9777..592b487adcb45802763008bda26e7825d46bbb5f 100644 (file)
@@ -193,7 +193,6 @@ typedef int pid_t;
 #define Py_IS_NAN _isnan
 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
 #define Py_IS_FINITE(X) _finite(X)
-#define copysign _copysign
 
 /* define some ANSI types that are not defined in earlier Win headers */
 #if _MSC_VER >= 1200