Skip to content

Commit

Permalink
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resou…
Browse files Browse the repository at this point in the history
…rce files (pythonGH-29501)
  • Loading branch information
zooba authored Nov 9, 2021
1 parent cb414cf commit a56fbad
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PC/pylauncher.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions PC/pyshellext.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions PC/python_exe.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions PC/python_nt.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 RT_MANIFEST "python.manifest"
Expand Down
6 changes: 6 additions & 0 deletions PC/pythonw_exe.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions PC/sqlite3.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

#include <winver.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.
2 RT_MANIFEST "python.manifest"
Expand Down

0 comments on commit a56fbad

Please sign in to comment.