]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
authorSteve Dower <steve.dower@python.org>
Sat, 6 Nov 2021 00:25:29 +0000 (00:25 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 00:25:29 +0000 (00:25 +0000)
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 0382977d6c367a416df2e038f285b9af8919fa58..c39ba3e1a9f412999f18a1474565b150b9bf9027 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>