diff options
author | dgp <dgp@users.sourceforge.net> | 2017-12-19 16:22:40 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-12-19 16:22:40 (GMT) |
commit | e99bd5262aabfc4bd42c08e6b69fb8f300dd6e56 (patch) | |
tree | fef1e2518308ce412a91e49d8666f9b192adaefb /win/tclWin32Dll.c | |
parent | aa93820c379b330ff33ef63ae19bc9f763a61b3d (diff) | |
parent | a430544f4a1f51fe9471263e696b7e50486aab10 (diff) | |
download | tcl-e99bd5262aabfc4bd42c08e6b69fb8f300dd6e56.zip tcl-e99bd5262aabfc4bd42c08e6b69fb8f300dd6e56.tar.gz tcl-e99bd5262aabfc4bd42c08e6b69fb8f300dd6e56.tar.bz2 |
merge trunk
Diffstat (limited to 'win/tclWin32Dll.c')
-rw-r--r-- | win/tclWin32Dll.c | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c index 1d6cb2b..95b8193 100644 --- a/win/tclWin32Dll.c +++ b/win/tclWin32Dll.c @@ -23,7 +23,6 @@ */ static HINSTANCE hInstance; /* HINSTANCE of this DLL. */ -static int platformId; /* Running under NT, or 95/98? */ /* * VC++ 5.x has no 'cpuid' assembler instruction, so we must emulate it @@ -186,51 +185,20 @@ TclWinInit( hInstance = hInst; os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); GetVersionExW(&os); - platformId = os.dwPlatformId; /* - * We no longer support Win32s or Win9x, so just in case someone manages - * to get a runtime there, make sure they know that. + * We no longer support Win32s or Win9x or Windows CE, so just in case + * someone manages to get a runtime there, make sure they know that. */ - if (platformId == VER_PLATFORM_WIN32s) { - Tcl_Panic("Win32s is not a supported platform"); - } - if (platformId == VER_PLATFORM_WIN32_WINDOWS) { - Tcl_Panic("Windows 9x is not a supported platform"); + if (os.dwPlatformId != VER_PLATFORM_WIN32_NT) { + Tcl_Panic("Windows NT is the only supported platform"); } TclWinResetInterfaces(); } /* - *---------------------------------------------------------------------- - * - * TclWinGetPlatformId -- - * - * Determines whether running under NT, 95, or Win32s, to allow runtime - * conditional code. - * - * Results: - * The return value is one of: - * VER_PLATFORM_WIN32s Win32s on Windows 3.1 (not supported) - * VER_PLATFORM_WIN32_WINDOWS Win32 on Windows 95, 98, ME (not supported) - * VER_PLATFORM_WIN32_NT Win32 on Windows NT, 2000, XP - * VER_PLATFORM_WIN32_CE Win32 on Windows CE - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -int -TclWinGetPlatformId(void) -{ - return platformId; -} - -/* *------------------------------------------------------------------------- * * TclWinNoBackslash -- |