diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-09 20:43:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 20:43:12 (GMT) |
commit | d29f591dd6b1dcd4f36b5b49761cf8225be690bd (patch) | |
tree | e0c0cd0e963839426d7a0d9cde41b687e22c70ed /PC/python_exe.rc | |
parent | 340ecafdf3bfb1377a1b8584addbb8e7bb423459 (diff) | |
download | cpython-d29f591dd6b1dcd4f36b5b49761cf8225be690bd.zip cpython-d29f591dd6b1dcd4f36b5b49761cf8225be690bd.tar.gz cpython-d29f591dd6b1dcd4f36b5b49761cf8225be690bd.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/python_exe.rc')
-rw-r--r-- | PC/python_exe.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PC/python_exe.rc b/PC/python_exe.rc index 5eba899..c3d3bff 100644 --- a/PC/python_exe.rc +++ b/PC/python_exe.rc @@ -2,6 +2,12 @@ #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" |