diff options
author | GalaxySnail <me@glxys.nl> | 2022-12-12 13:39:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 13:39:23 (GMT) |
commit | 158b8a07212cea6066afe8bb91f1cd542d922dba (patch) | |
tree | b1fc325f4c24d73a7b8592de255de4a0be92c0fa /PC | |
parent | 8711b59f7ac1803307d340e357e025043fbe2f39 (diff) | |
download | cpython-158b8a07212cea6066afe8bb91f1cd542d922dba.zip cpython-158b8a07212cea6066afe8bb91f1cd542d922dba.tar.gz cpython-158b8a07212cea6066afe8bb91f1cd542d922dba.tar.bz2 |
gh-79218: Define `MS_WIN64` macro for Mingw-w64 64bit on Windows (GH-100137)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/pyconfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 1a33d4c..1d8408b 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -210,6 +210,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) /* XXX These defines are likely incomplete, but should be easy to fix. |