Files
MINGW-packages/mingw-w64-python3/0110-MINGW-translate-gcc-internal-defines-to-python-platf.patch
2015-09-21 15:47:39 +03:00

26 lines
851 B
Diff

diff -Naur Python-3.5.0-orig/Include/pyport.h Python-3.5.0/Include/pyport.h
--- Python-3.5.0-orig/Include/pyport.h 2015-09-13 14:41:20.000000000 +0300
+++ Python-3.5.0/Include/pyport.h 2015-09-21 13:41:05.553294200 +0300
@@ -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.