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

This commit is contained in:
Steve Dower 2020-11-16 23:22:42 +00:00 committed by GitHub
parent cae60187cf
commit 9cc9e27725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1 @@
Remove macro definition of ``copysign`` (to ``_copysign``) in headers.

View File

@ -193,7 +193,6 @@ typedef int pid_t;
#define Py_IS_NAN _isnan #define Py_IS_NAN _isnan
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X)) #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
#define Py_IS_FINITE(X) _finite(X) #define Py_IS_FINITE(X) _finite(X)
#define copysign _copysign
/* define some ANSI types that are not defined in earlier Win headers */ /* define some ANSI types that are not defined in earlier Win headers */
#if _MSC_VER >= 1200 #if _MSC_VER >= 1200