[Python-checkins] [3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326) (GH-23331)

miss-islington webhook-mailer at python.org
Tue Nov 17 02:50:53 EST 2020


https://github.com/python/cpython/commit/2c38e49dba88a39679b2182ca3f5f478d3a3f647
commit: 2c38e49dba88a39679b2182ca3f5f478d3a3f647
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-16T23:50:43-08:00
summary:

[3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326) (GH-23331)



(cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2)


Co-authored-by: Steve Dower <steve.dower at python.org>

files:
A Misc/NEWS.d/next/Windows/2020-11-16-22-41-02.bpo-42120.9scgko.rst
M 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
index 0000000000000..c574956d11d93
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2020-11-16-22-41-02.bpo-42120.9scgko.rst
@@ -0,0 +1 @@
+Remove macro definition of ``copysign`` (to ``_copysign``) in headers.
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 02216b5068012..d7d3cf081e050 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -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



More information about the Python-checkins mailing list