cpython: 033d686af4c1 (original) (raw)

Mercurial > cpython

changeset 89755:033d686af4c1 3.4

Issue #20221: Removed conflicting (or circular) hypot definition when compiled with VS 2010 or above. Initial patch by Tabrez Mohammed. [#20221]

Zachary Ware zachary.ware@gmail.com
date Thu, 20 Feb 2014 15:39:29 -0600
parents 0f26daac85bb
children 2dfc383b4907
files Misc/NEWS PC/pyconfig.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-)[+] [-] Misc/NEWS 3 PC/pyconfig.h 4

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -68,6 +68,9 @@ Library Build ----- +- Issue #20221: Removed conflicting (or circular) hypot definition when

--- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -207,7 +207,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