Files
MINGW-packages/mingw-w64-python3/0110-MINGW-translate-gcc-internal-defines-to-python-platf.patch
2014-05-20 01:12:05 +04:00

26 lines
797 B
Diff

diff -Naur a/Include/pyport.h b/Include/pyport.h
--- a/Include/pyport.h 2014-05-19 09:19:37.000000000 +0400
+++ b/Include/pyport.h 2014-05-20 00:54:18.888400000 +0400
@@ -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.