summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-11-06 00:25:29 (GMT)
committerGitHub <noreply@github.com>2021-11-06 00:25:29 (GMT)
commit804ea41211b042fa20c3cd8c0457bbfa3873128a (patch)
tree0d8b78e9fa80cadd8a88078203641100ec210645
parent279a7a0c9429f87c9e1f1042f580faf460b176e1 (diff)
downloadcpython-804ea41211b042fa20c3cd8c0457bbfa3873128a.zip
cpython-804ea41211b042fa20c3cd8c0457bbfa3873128a.tar.gz
cpython-804ea41211b042fa20c3cd8c0457bbfa3873128a.tar.bz2
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
-rw-r--r--Misc/NEWS.d/next/Windows/2021-11-05-01-05-46.bpo-45720.47Nc5I.rst3
-rw-r--r--PC/getpathp.c1
-rw-r--r--PCbuild/pythoncore.vcxproj2
3 files changed, 4 insertions, 2 deletions
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 0000000..315759b
--- /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 dc5b201..7c0eeab 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -91,7 +91,6 @@
#include <windows.h>
#include <pathcch.h>
-#include <shlwapi.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 0382977..c39ba3e 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -106,7 +106,7 @@
<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>