summaryrefslogtreecommitdiffstats
path: root/Python/dynload_shlib.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-04 23:04:27 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-04 23:04:27 (GMT)
commitb48925a4060243688c108d0df1e102eb7a1580d0 (patch)
treecf0c99e622ff07e85ba456ff66b9dde9cd0a1332 /Python/dynload_shlib.c
parentd4b5aaa9a9455f53c1fe4244f37ee3d5632bf53f (diff)
downloadcpython-b48925a4060243688c108d0df1e102eb7a1580d0.zip
cpython-b48925a4060243688c108d0df1e102eb7a1580d0.tar.gz
cpython-b48925a4060243688c108d0df1e102eb7a1580d0.tar.bz2
#16135: Removal of OS/2 support (I)
Diffstat (limited to 'Python/dynload_shlib.c')
-rw-r--r--Python/dynload_shlib.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c
index 6df6199..46fed6e 100644
--- a/Python/dynload_shlib.c
+++ b/Python/dynload_shlib.c
@@ -18,10 +18,6 @@
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
-#else
-#if defined(PYOS_OS2) && defined(PYCC_GCC)
-#include "dlfcn.h"
-#endif
#endif
#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
@@ -40,10 +36,6 @@ const char *_PyImport_DynLoadFiletab[] = {
#ifdef __CYGWIN__
".dll",
#else /* !__CYGWIN__ */
-#if defined(PYOS_OS2) && defined(PYCC_GCC)
- ".pyd",
- ".dll",
-#else /* !(defined(PYOS_OS2) && defined(PYCC_GCC)) */
#ifdef __VMS
".exe",
".EXE",
@@ -52,7 +44,6 @@ const char *_PyImport_DynLoadFiletab[] = {
".abi" PYTHON_ABI_STRING ".so",
".so",
#endif /* __VMS */
-#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */
#endif /* __CYGWIN__ */
NULL,
};
@@ -111,9 +102,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
}
}
-#if !(defined(PYOS_OS2) && defined(PYCC_GCC))
dlopenflags = PyThreadState_GET()->interp->dlopenflags;
-#endif
#ifdef __VMS
/* VMS currently don't allow a pathname, use a logical name instead */