Skip to content

Commit df4852c

Browse files
miss-islingtoncarljm
authored andcommitted
Fix Windows build of Python for latest WinSDK. (GH-6874) (GH-6952)
(cherry picked from commit c0ee341) Co-authored-by: Carl Meyer <[email protected]>
1 parent f34ade3 commit df4852c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Modules/_io/_iomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#endif /* HAVE_SYS_STAT_H */
2222

2323
#ifdef MS_WINDOWS
24-
#include <consoleapi.h>
24+
#include <Windows.h>
2525
#endif
2626

2727
/* Various interned strings */

PCbuild/python.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
-->
7878
<_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
7979
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
80-
<DefaultWindowsSDKVersion>10.0.16299.0</DefaultWindowsSDKVersion>
80+
<DefaultWindowsSDKVersion>10.0.17134.0</DefaultWindowsSDKVersion>
81+
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.16299'">10.0.16299.0</DefaultWindowsSDKVersion>
8182
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.15063'">10.0.15063.0</DefaultWindowsSDKVersion>
8283
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.14393'">10.0.14393.0</DefaultWindowsSDKVersion>
8384
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10586'">10.0.10586.0</DefaultWindowsSDKVersion>

0 commit comments

Comments
 (0)