Skip to content

Commit 6879a9b

Browse files
Alexpuxlazka
authored andcommitted
fix using dllhandle and winver mingw
Co-authored-by: Алексей <[email protected]>
1 parent 675f918 commit 6879a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/sysmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Data members:
4343
#include <windows.h>
4444
#endif /* MS_WINDOWS */
4545

46-
#ifdef MS_COREDLL
46+
#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
4747
extern void *PyWin_DLLhModule;
4848
/* A string loaded from the DLL at startup: */
4949
extern const char *PyWin_DLLVersionString;
@@ -2929,7 +2929,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
29292929
SET_SYS_FROM_STRING("byteorder", "little");
29302930
#endif
29312931

2932-
#ifdef MS_COREDLL
2932+
#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
29332933
SET_SYS("dllhandle", PyLong_FromVoidPtr(PyWin_DLLhModule));
29342934
SET_SYS_FROM_STRING("winver", PyWin_DLLVersionString);
29352935
#endif

0 commit comments

Comments
 (0)