diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-06 17:35:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-06 17:35:08 (GMT) |
commit | 95e7615fc46beabd9927303aebdeef45cdbca2f8 (patch) | |
tree | 0816e5ed0e9ca929aa2f3c0ebd97a38b0232dbc7 /win/tclWinInit.c | |
parent | 8494cde0844422529578c702ebaa3382346c1e08 (diff) | |
parent | ba6fe47daab7593fc0e2d80184a15c791e73dcf7 (diff) | |
download | tcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.zip tcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.tar.gz tcl-95e7615fc46beabd9927303aebdeef45cdbca2f8.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r-- | win/tclWinInit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index a7e82de..cf74228 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -485,6 +485,9 @@ TclpSetVariables( TCL_GLOBAL_ONLY); Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY); + if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) { + osInfo.dwMajorVersion = 11; + } wsprintfA(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion); Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY); if (sys.oemId.wProcessorArchitecture < NUMPROCESSORS) { |