22 lines
793 B
Diff
22 lines
793 B
Diff
diff -Naur Python-3.8.0-orig/Python/sysmodule.c Python-3.8.0/Python/sysmodule.c
|
|
--- Python-3.8.0-orig/Python/sysmodule.c 2019-10-14 16:34:47.000000000 +0300
|
|
+++ Python-3.8.0/Python/sysmodule.c 2019-10-22 10:04:08.995074100 +0300
|
|
@@ -34,7 +34,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;
|
|
@@ -2694,7 +2694,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",
|