Skip to content

Commit

Permalink
gh-79218: Define MS_WIN64 macro for Mingw-w64 64bit on Windows (GH-…
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySnail authored Dec 12, 2022
1 parent 8711b59 commit 158b8a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Define ``MS_WIN64`` for Mingw-w64 64bit, fix cython compilation failure.
10 changes: 10 additions & 0 deletions PC/pyconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 158b8a0

Please sign in to comment.