summaryrefslogtreecommitdiffstats
path: root/PC/pylauncher.rc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-11-15 17:40:08 (GMT)
committerGitHub <noreply@github.com>2021-11-15 17:40:08 (GMT)
commit32d14b262d6d914f63485f8d6e7859df58cd2089 (patch)
tree2df16730f31ae3da140690b9112cec2893a6f172 /PC/pylauncher.rc
parent9f9a3028e3bb923e726789ab3ea5ce298b596bc6 (diff)
downloadcpython-32d14b262d6d914f63485f8d6e7859df58cd2089.zip
cpython-32d14b262d6d914f63485f8d6e7859df58cd2089.tar.gz
cpython-32d14b262d6d914f63485f8d6e7859df58cd2089.tar.bz2
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501)
(cherry picked from commit a56fbad85ea655631bce68d4c0f47f1a8b500abd) Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'PC/pylauncher.rc')
-rw-r--r--PC/pylauncher.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/PC/pylauncher.rc b/PC/pylauncher.rc
index d21f9b6..ff7e71e 100644
--- a/PC/pylauncher.rc
+++ b/PC/pylauncher.rc
@@ -2,6 +2,11 @@
#include "python_ver_rc.h"
+#ifndef RT_MANIFEST
+// bpo-45220: Cannot reliably #include RT_MANIFEST from
+// anywhere, so we hardcode it
+#define RT_MANIFEST 24
+#endif
// Include the manifest file that indicates we support all
// current versions of Windows.
1 RT_MANIFEST "python.manifest"