Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c9beb6

Browse files
committed
Issue #20221: Removed conflicting (or circular) hypot definition
when compiled with VS 2010 or above. Initial patch by Tabrez Mohammed.
1 parent 37f15bc commit 0c9beb6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Library
6868
Build
6969
-----
7070

71+
- Issue #20221: Removed conflicting (or circular) hypot definition when
72+
compiled with VS 2010 or above. Initial patch by Tabrez Mohammed.
73+
7174
- Issue #20609: Restored the ability to build 64-bit Windows binaries on
7275
32-bit Windows, which was broken by the change in issue #19788.
7376

PC/pyconfig.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ typedef int pid_t;
207207
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
208208
#define Py_IS_FINITE(X) _finite(X)
209209
#define copysign _copysign
210+
211+
/* VS 2010 and above already defines hypot as _hypot */
212+
#if _MSC_VER < 1600
210213
#define hypot _hypot
214+
#endif
211215

212216
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
213217
#if _MSC_VER >= 1400 && _MSC_VER < 1600

0 commit comments

Comments
 (0)