mirror of https://github.com/python/cpython
gh-79218: Define `MS_WIN64` macro for Mingw-w64 64bit on Windows (GH-100137)
This commit is contained in:
parent
8711b59f7a
commit
158b8a0721
|
@ -0,0 +1 @@
|
|||
Define ``MS_WIN64`` for Mingw-w64 64bit, fix cython compilation failure.
|
|
@ -209,6 +209,16 @@ typedef int pid_t;
|
|||
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
/* ------------------------------------------------------------------------*/
|
||||
/* mingw and mingw-w64 define __MINGW32__ */
|
||||
#ifdef __MINGW32__
|
||||
|
||||
#ifdef _WIN64
|
||||
#define MS_WIN64
|
||||
#endif
|
||||
|
||||
#endif /* __MINGW32__*/
|
||||
|
||||
/* ------------------------------------------------------------------------*/
|
||||
/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
|
||||
#if defined(__GNUC__) && defined(_WIN32)
|
||||
|
|
Loading…
Reference in New Issue