Skip to content

Commit a85b5ec

Browse files
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (pythonGH-29501)
1 parent 607daf1 commit a85b5ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PC/python_exe.rc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
#include "python_ver_rc.h"
44

5+
#ifndef RT_MANIFEST
6+
// bpo-45220: Cannot reliably #include RT_MANIFEST from
7+
// anywhere, so we hardcode it
8+
#define RT_MANIFEST 24
9+
#endif
10+
511
// Include the manifest file that indicates we support all
612
// current versions of Windows.
713
1 RT_MANIFEST "python.manifest"

0 commit comments

Comments
 (0)