diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 19:55:16 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 19:55:16 (GMT) |
| commit | 1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6 (patch) | |
| tree | 7c1d8d3f8cf1b287cbf3d710de07c8be92afc08b /win/tclWinInit.c | |
| parent | acb6a88df555fe8bdf2271bdbddb5fe19046b6c2 (diff) | |
| parent | ab6e69444f61e776bbfb2bcf6a6ca95047df149c (diff) | |
| download | tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.zip tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.tar.gz tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.tar.bz2 | |
merge trunk
Diffstat (limited to 'win/tclWinInit.c')
| -rw-r--r-- | win/tclWinInit.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index eaf4f36..4be8f1f 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -84,15 +84,10 @@ TclWinProcs tclWinProcs; /* * The following arrays contain the human readable strings for the Windows - * platform and processor values. + * processor values. */ -#define NUMPLATFORMS 4 -static const char *const platforms[NUMPLATFORMS] = { - "Win32s", "Windows 95", "Windows NT", "Windows CE" -}; - #define NUMPROCESSORS 11 static const char *const processors[NUMPROCESSORS] = { "intel", "mips", "alpha", "ppc", "shx", "arm", "ia64", "alpha64", "msil", @@ -563,10 +558,7 @@ TclpSetVariables( Tcl_SetVar2(interp, "tcl_platform", "platform", "windows", TCL_GLOBAL_ONLY); - if (osInfo.dwPlatformId < NUMPLATFORMS) { - Tcl_SetVar2(interp, "tcl_platform", "os", - platforms[osInfo.dwPlatformId], TCL_GLOBAL_ONLY); - } + Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY); wsprintfA(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion); Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY); if (sys.oemId.wProcessorArchitecture < NUMPROCESSORS) { |
