summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python/src')
-rw-r--r--contrib/tools/python/src/Include/pyconfig.win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tools/python/src/Include/pyconfig.win32.h b/contrib/tools/python/src/Include/pyconfig.win32.h
index 8aeb631ab1e..6aae7b85b0f 100644
--- a/contrib/tools/python/src/Include/pyconfig.win32.h
+++ b/contrib/tools/python/src/Include/pyconfig.win32.h
@@ -233,7 +233,9 @@ 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)
+#ifndef __clang__
#define copysign _copysign
+#endif
/* VS 2010 and above already defines hypot as _hypot */
#if _MSC_VER < 1600