Skip to content

Commit 158b8a0

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

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Define ``MS_WIN64`` for Mingw-w64 64bit, fix cython compilation failure.

PC/pyconfig.h

+10
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)