mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
Fix Windows build of Python for latest WinSDK. (GH-6874) (GH-6952)
(cherry picked from commit c0ee341b29
)
Co-authored-by: Carl Meyer <carl@oddbird.net>
This commit is contained in:
parent
f34ade33ee
commit
df4852cbe4
2 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
|||
#endif /* HAVE_SYS_STAT_H */
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
#include <consoleapi.h>
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
/* Various interned strings */
|
||||
|
|
|
@ -77,7 +77,8 @@
|
|||
-->
|
||||
<_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
|
||||
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
|
||||
<DefaultWindowsSDKVersion>10.0.16299.0</DefaultWindowsSDKVersion>
|
||||
<DefaultWindowsSDKVersion>10.0.17134.0</DefaultWindowsSDKVersion>
|
||||
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.16299'">10.0.16299.0</DefaultWindowsSDKVersion>
|
||||
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.15063'">10.0.15063.0</DefaultWindowsSDKVersion>
|
||||
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.14393'">10.0.14393.0</DefaultWindowsSDKVersion>
|
||||
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10586'">10.0.10586.0</DefaultWindowsSDKVersion>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue