diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-20 13:38:17 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-20 13:38:17 (GMT) |
| commit | 8bafabac9895be043d6bc198b1f1766240682ae6 (patch) | |
| tree | 4057af9d22a34d893adece1a29ef67c9c2c20e4d /unix/tclUnixInit.c | |
| parent | 1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6 (diff) | |
| parent | a15b801bfb5d91ea33543a69ca112cfdd4a848bb (diff) | |
| download | tcl-8bafabac9895be043d6bc198b1f1766240682ae6.zip tcl-8bafabac9895be043d6bc198b1f1766240682ae6.tar.gz tcl-8bafabac9895be043d6bc198b1f1766240682ae6.tar.bz2 | |
merge trunk
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index feeffa6..9d46df9 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -39,11 +39,6 @@ DLLIMPORT extern __stdcall void FreeLibrary(void *); DLLIMPORT extern __stdcall void *GetProcAddress(void *, const char *); DLLIMPORT extern __stdcall void GetSystemInfo(void *); -#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", @@ -890,10 +885,7 @@ TclpSetVariables( GetSystemInfo(&sysInfo); - 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); sprintf(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion); Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY); if (sysInfo.wProcessorArchitecture < NUMPROCESSORS) { |
