Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87667c5

Browse filesBrowse files
thewtexmethane
authored andcommitted
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
This addresses C extension build errors related to an undefined _hypot symbol when building with the Microsoft Visual C++ Compiler for Python 2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++ extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not been declared' [1] https://www.microsoft.com/en-us/download/details.aspx?id=44266 [2] https://mingwpy.github.io/
1 parent 6ded898 commit 87667c5
Copy full SHA for 87667c5

File tree

Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed

‎PC/pyconfig.h

Copy file name to clipboardExpand all lines: PC/pyconfig.h
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ typedef int pid_t;
192192
#define Py_IS_FINITE(X) _finite(X)
193193
#define copysign _copysign
194194

195-
/* VS 2010 and above already defines hypot as _hypot */
196-
#if _MSC_VER < 1600
197-
#define hypot _hypot
198-
#endif
199-
200195
/* VS 2015 defines these names with a leading underscore */
201196
#if _MSC_VER >= 1900
202197
#define timezone _timezone
@@ -231,7 +226,6 @@ typedef int pid_t;
231226
#endif
232227

233228
#define COMPILER "[gcc]"
234-
#define hypot _hypot
235229
#define PY_LONG_LONG long long
236230
#define PY_LLONG_MIN LLONG_MIN
237231
#define PY_LLONG_MAX LLONG_MAX

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.