summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:35:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:35:08 (GMT)
commit95e7615fc46beabd9927303aebdeef45cdbca2f8 (patch)
tree0816e5ed0e9ca929aa2f3c0ebd97a38b0232dbc7 /unix/tclUnixInit.c
parent8494cde0844422529578c702ebaa3382346c1e08 (diff)
parentba6fe47daab7593fc0e2d80184a15c791e73dcf7 (diff)
downloadtcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.zip
tcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.tar.gz
tcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 995bd83..8f7a737 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -897,6 +897,9 @@ TclpSetVariables(
GetSystemInfo(&sysInfo);
+ if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) {
+ osInfo.dwMajorVersion = 11;
+ }
Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY);
sprintf(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);