From 734aac3456c0fa4fc1f6632574d1073fad72575a Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 5 Nov 2021 23:06:45 +0000 Subject: [PATCH] bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) --- .../next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst | 3 +++ PC/getpathp.c | 1 - PCbuild/pythoncore.vcxproj | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst 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 00000000000000..315759b07e147e --- /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 dc5b201d145f33..7c0eeab5dbab4a 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 0382977d6c367a..c39ba3e1a9f412 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)