Skip to content

Commit ba6fe47

Browse files
author
jan.nijtmans
committed
Merge 8.6
2 parents 507af3b + cf560b3 commit ba6fe47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

unix/tclUnixInit.c

+3
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,9 @@ TclpSetVariables(
886886

887887
GetSystemInfo(&sysInfo);
888888

889+
if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) {
890+
osInfo.dwMajorVersion = 11;
891+
}
889892
Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY);
890893
sprintf(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
891894
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);

win/tclWinInit.c

+3
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ TclpSetVariables(
485485
TCL_GLOBAL_ONLY);
486486
Tcl_SetVar2(interp, "tcl_platform", "os",
487487
"Windows NT", TCL_GLOBAL_ONLY);
488+
if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) {
489+
osInfo.dwMajorVersion = 11;
490+
}
488491
wsprintfA(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
489492
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);
490493
if (sys.oemId.wProcessorArchitecture < NUMPROCESSORS) {

0 commit comments

Comments
 (0)