summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-02-20 21:36:34 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-02-20 21:36:34 (GMT)
commit2d659518aa4d21ee72896a4b8a55bfacc2bd7adc (patch)
treedbaa2dc15799ff6f8ffaa85dcaad4ca0d0db78dd /PC/pyconfig.h
parenta96fd48298db04cedbdb0cb75fc124ba58ff7bb4 (diff)
downloadcpython-2d659518aa4d21ee72896a4b8a55bfacc2bd7adc.zip
cpython-2d659518aa4d21ee72896a4b8a55bfacc2bd7adc.tar.gz
cpython-2d659518aa4d21ee72896a4b8a55bfacc2bd7adc.tar.bz2
Issue #20221: Removed conflicting (or circular) hypot definition
when compiled with VS 2010 or above. Initial patch by Tabrez Mohammed.
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index f320ccf..0b96539 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -213,7 +213,11 @@ typedef int pid_t;
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
#define Py_IS_FINITE(X) _finite(X)
#define copysign _copysign
+
+/* VS 2010 and above already defines hypot as _hypot */
+#if _MSC_VER < 1600
#define hypot _hypot
+#endif
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
#if _MSC_VER >= 1400 && _MSC_VER < 1600