Skip to content

Commit 43133b5

Browse files
Alexpuxlazka
andcommitted
MINGW translate gcc internal defines to python platf
Co-authored-by: Алексей <[email protected]> Co-authored-by: Christoph Reiter <[email protected]>
1 parent bdf37e4 commit 43133b5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Include/pyport.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@
2626
#endif
2727

2828

29+
#ifdef __MINGW32__
30+
/* Translate GCC[mingw*] platform specific defines to those
31+
* used in python code.
32+
*/
33+
#if !defined(MS_WIN64) && defined(_WIN64)
34+
# define MS_WIN64
35+
#endif
36+
#if !defined(MS_WIN32) && defined(_WIN32)
37+
# define MS_WIN32
38+
#endif
39+
#if !defined(MS_WINDOWS) && defined(MS_WIN32)
40+
# define MS_WINDOWS
41+
#endif
42+
#endif /* __MINGW32__*/
43+
2944
/**************************************************************************
3045
Symbols and macros to supply platform-independent interfaces to basic
3146
C language & library operations whose spellings vary across platforms.

0 commit comments

Comments
 (0)