From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 6 Nov 2021 01:38:50 +0000 (-0700) Subject: bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) X-Git-Tag: v3.9.9~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5017306c8732b3ceda878db13088f8c2cf0c5e71;p=thirdparty%2FPython%2Fcpython.git bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) (cherry picked from commit 804ea41211b042fa20c3cd8c0457bbfa3873128a) Co-authored-by: Steve Dower Co-authored-by: Steve Dower --- diff --git a/Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst b/Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst new file mode 100644 index 000000000000..315759b07e14 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst @@ -0,0 +1,3 @@ +Internal reference to :file:`shlwapi.dll` was dropped to help improve +startup time. This DLL will no longer be loaded at the start of every Python +process. diff --git a/PC/getpathp.c b/PC/getpathp.c index dc5b201d145f..7c0eeab5dbab 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -91,7 +91,6 @@ #include #include -#include #ifdef HAVE_SYS_TYPES_H #include diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 2625d0293dde..9a40905fe01f 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -106,7 +106,7 @@ _Py_HAVE_ZLIB;%(PreprocessorDefinitions) - version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies) + version.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)