gh-79218: Define `MS_WIN64` macro for Mingw-w64 64bit on Windows (GH-100137)

This commit is contained in:
GalaxySnail 2022-12-12 21:39:23 +08:00 committed by GitHub
parent 8711b59f7a
commit 158b8a0721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
Define ``MS_WIN64`` for Mingw-w64 64bit, fix cython compilation failure.

View File

@ -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)