Skip to content

Commit a49192a

Browse files
committed
define MS_WIN64 for 64bit mingw-w64
1 parent a29a7b9 commit a49192a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

PC/pyconfig.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,24 @@ typedef int pid_t;
209209

210210
#endif /* _MSC_VER */
211211

212+
/* ------------------------------------------------------------------------*/
213+
/* mingw and mingw-w64 define __MINGW32__ */
214+
#ifdef __MINGW32__
215+
216+
#if !defined(MS_WIN64) && defined(_WIN64)
217+
#define MS_WIN64
218+
#endif
219+
220+
#if !defined(MS_WIN32) && defined(_WIN32)
221+
#define MS_WIN32
222+
#endif
223+
224+
#if !defined(MS_WINDOWS) && defined(MS_WIN32)
225+
#define MS_WINDOWS
226+
#endif
227+
228+
#endif /* __MINGW32__*/
229+
212230
/* ------------------------------------------------------------------------*/
213231
/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
214232
#if defined(__GNUC__) && defined(_WIN32)

0 commit comments

Comments
 (0)