We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675f918 commit 6879a9bCopy full SHA for 6879a9b
Python/sysmodule.c
@@ -43,7 +43,7 @@ Data members:
43
#include <windows.h>
44
#endif /* MS_WINDOWS */
45
46
-#ifdef MS_COREDLL
+#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
47
extern void *PyWin_DLLhModule;
48
/* A string loaded from the DLL at startup: */
49
extern const char *PyWin_DLLVersionString;
@@ -2929,7 +2929,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
2929
SET_SYS_FROM_STRING("byteorder", "little");
2930
#endif
2931
2932
2933
SET_SYS("dllhandle", PyLong_FromVoidPtr(PyWin_DLLhModule));
2934
SET_SYS_FROM_STRING("winver", PyWin_DLLVersionString);
2935
0 commit comments