diff options
author | Sam Gross <colesbury@gmail.com> | 2023-10-04 22:50:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 22:50:29 (GMT) |
commit | cf6f23b0e3cdef33f23967cf954a2ca4d1fa6528 (patch) | |
tree | 81af760a78ee03470d1fb1abbd13d35a24ad6cc3 /Python/dynload_win.c | |
parent | 80dc39e1dc2abc809f448cba5d2c5b9c1c631e11 (diff) | |
download | cpython-cf6f23b0e3cdef33f23967cf954a2ca4d1fa6528.zip cpython-cf6f23b0e3cdef33f23967cf954a2ca4d1fa6528.tar.gz cpython-cf6f23b0e3cdef33f23967cf954a2ca4d1fa6528.tar.bz2 |
gh-88402: Add new sysconfig variables on Windows (GH-110049)
Co-authored-by: Filipe LaĆns <filipe.lains@gmail.com>
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r-- | Python/dynload_win.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c index fcb3cb7..a0ac31c 100644 --- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -5,30 +5,10 @@ #include "pycore_fileutils.h" // _Py_add_relfile() #include "pycore_pystate.h" // _PyInterpreterState_GET() -#include "importdl.h" // dl_funcptr +#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 Py_NOGIL -# define PYD_THREADING_TAG "t" -#else -# define PYD_THREADING_TAG "" -#endif - -#ifdef PYD_PLATFORM_TAG -#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) PYD_THREADING_TAG "-" PYD_PLATFORM_TAG ".pyd" -#else -#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) PYD_THREADING_TAG ".pyd" -#endif - -#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd" - const char *_PyImport_DynLoadFiletab[] = { PYD_TAGGED_SUFFIX, PYD_UNTAGGED_SUFFIX, |