]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Nov 2021 01:38:50 +0000 (18:38 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 01:38:50 +0000 (01:38 +0000)
(cherry picked from commit 804ea41211b042fa20c3cd8c0457bbfa3873128a)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst [new file with mode: 0644]
PC/getpathp.c
PCbuild/pythoncore.vcxproj

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 (file)
index 0000000..315759b
--- /dev/null
@@ -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.
index dc5b201d145f33dbdb1229129bffb52ed01dfdab..7c0eeab5dbab4a36ee5957ac764c6dc026a45158 100644 (file)
@@ -91,7 +91,6 @@
 
 #include <windows.h>
 #include <pathcch.h>
-#include <shlwapi.h>
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
index 2625d0293dde635d5fe5228c2c553115b5ce9d00..9a40905fe01f828f1f8d4f70fcd58aa2858749f8 100644 (file)
       <PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
-      <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>