summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/dynload_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Python/dynload_win.c')
-rw-r--r--contrib/tools/python3/Python/dynload_win.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/contrib/tools/python3/Python/dynload_win.c b/contrib/tools/python3/Python/dynload_win.c
index acab05e2c6d..a0ac31c80a5 100644
--- a/contrib/tools/python3/Python/dynload_win.c
+++ b/contrib/tools/python3/Python/dynload_win.c
@@ -5,29 +5,10 @@
#include "pycore_fileutils.h" // _Py_add_relfile()
#include "pycore_pystate.h" // _PyInterpreterState_GET()
-#ifdef HAVE_DIRECT_H
-#include <direct.h>
-#endif
-#include <ctype.h>
-
-#include "importdl.h"
-#include "patchlevel.h"
+#include "pycore_importdl.h" // dl_funcptr
+#include "patchlevel.h" // PY_MAJOR_VERSION
#include <windows.h>
-#ifdef _DEBUG
-#define PYD_DEBUG_SUFFIX "_d"
-#else
-#define PYD_DEBUG_SUFFIX ""
-#endif
-
-#ifdef PYD_PLATFORM_TAG
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
-#else
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) ".pyd"
-#endif
-
-#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd"
-
const char *_PyImport_DynLoadFiletab[] = {
PYD_TAGGED_SUFFIX,
PYD_UNTAGGED_SUFFIX,