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 158b8a0

Browse filesBrowse files
authored
gh-79218: Define MS_WIN64 macro for Mingw-w64 64bit on Windows (GH-100137)
1 parent 8711b59 commit 158b8a0
Copy full SHA for 158b8a0

2 files changed

+11Lines changed: 11 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Define ``MS_WIN64`` for Mingw-w64 64bit, fix cython compilation failure.
Collapse file

‎PC/pyconfig.h‎

Copy file name to clipboardExpand all lines: PC/pyconfig.h
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,16 @@ typedef int pid_t;
209209

210210
#endif /* _MSC_VER */
211211

212+
/* ------------------------------------------------------------------------*/
213+
/* mingw and mingw-w64 define __MINGW32__ */
214+
#ifdef __MINGW32__
215+
216+
#ifdef _WIN64
217+
#define MS_WIN64
218+
#endif
219+
220+
#endif /* __MINGW32__*/
221+
212222
/* ------------------------------------------------------------------------*/
213223
/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
214224
#if defined(__GNUC__) && defined(_WIN32)

0 commit comments

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