summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-19 11:21:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-19 11:21:33 (GMT)
commitf64bba0499c121428187fe686da131dca5905e50 (patch)
tree78268c927d0ebb9c6e5a2eb16f12e2fc2994c3d1 /unix/tclUnixInit.c
parentdbe18af9ea851bd0e954036eff3fcd21bccf5291 (diff)
downloadtcl-f64bba0499c121428187fe686da131dca5905e50.zip
tcl-f64bba0499c121428187fe686da131dca5905e50.tar.gz
tcl-f64bba0499c121428187fe686da131dca5905e50.tar.bz2
Minor simplification on Cygwin, since we only support Windows NT now
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index e57136d..cc66569 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) {