Files
MINGW-packages/mingw-w64-python3/0910-fix-using-dllhandle-and-winver-mingw.patch
2016-07-12 14:49:26 +03:00

22 lines
793 B
Diff

diff -Naur Python-3.5.2-orig/Python/sysmodule.c Python-3.5.2/Python/sysmodule.c
--- Python-3.5.2-orig/Python/sysmodule.c 2016-07-12 14:22:00.012800700 +0300
+++ Python-3.5.2/Python/sysmodule.c 2016-07-12 14:22:55.046300700 +0300
@@ -26,7 +26,7 @@
#include <windows.h>
#endif /* MS_WINDOWS */
-#ifdef MS_COREDLL
+#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
extern void *PyWin_DLLhModule;
/* A string loaded from the DLL at startup: */
extern const char *PyWin_DLLVersionString;
@@ -1826,7 +1826,7 @@
PyUnicode_FromString("little"));
#endif
-#ifdef MS_COREDLL
+#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
SET_SYS_FROM_STRING("dllhandle",
PyLong_FromVoidPtr(PyWin_DLLhModule));
SET_SYS_FROM_STRING("winver",