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 d236925 commit 35c395aCopy full SHA for 35c395a
Lib/ctypes/__init__.py
@@ -458,7 +458,9 @@ def LoadLibrary(self, name):
458
cdll = LibraryLoader(CDLL)
459
pydll = LibraryLoader(PyDLL)
460
461
-if _os.name == "nt":
+if _os.name == "nt" and _sys.version.find('GCC') >= 0:
462
+ pythonapi = PyDLL("libpython%d.%d%s.dll" % (_sys.version_info[:2] + (_sys.abiflags,)), None)
463
+elif _os.name == "nt":
464
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
465
elif _sys.platform == "cygwin":
466
pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])
0 commit comments