Files
MINGW-packages/mingw-w64-python3/0110-MINGW-translate-gcc-internal-defines-to-python-platf.patch
2014-10-11 14:46:25 +01:00

26 lines
796 B
Diff

diff -urN a/Include/pyport.h b/Include/pyport.h
--- a/Include/pyport.h 2014-10-11 14:18:38.798089400 +0100
+++ b/Include/pyport.h 2014-10-11 14:18:40.574191000 +0100
@@ -13,6 +13,21 @@
#include <stdint.h>
#endif
+#ifdef __MINGW32__
+/* Translate GCC[mingw*] platform specific defines to those
+ * used in python code.
+ */
+#if !defined(MS_WIN64) && defined(_WIN64)
+# define MS_WIN64
+#endif
+#if !defined(MS_WIN32) && defined(_WIN32)
+# define MS_WIN32
+#endif
+#if !defined(MS_WINDOWS) && defined(MS_WIN32)
+# define MS_WINDOWS
+#endif
+#endif /*def __MINGW32__*/
+
/**************************************************************************
Symbols and macros to supply platform-independent interfaces to basic
C language & library operations whose spellings vary across platforms.