summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-02-08 07:41:17 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-02-08 07:41:17 (GMT)
commitd94ddd8a072674f4fe2f68f46d9e6f8e91a821f4 (patch)
tree4505f007fa376fabd602f450b526a4748635179f /win
parente7704f85aa81ff101952d41f121bb52631052981 (diff)
parentd16daeb28a40a95fa54d322134a76c64023beda6 (diff)
downloadtcl-d94ddd8a072674f4fe2f68f46d9e6f8e91a821f4.zip
tcl-d94ddd8a072674f4fe2f68f46d9e6f8e91a821f4.tar.gz
tcl-d94ddd8a072674f4fe2f68f46d9e6f8e91a821f4.tar.bz2
merge trunk
Diffstat (limited to 'win')
-rw-r--r--win/tclWinInit.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index b3f8f41..2c21d38 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -540,16 +540,17 @@ TclpSetVariables(
TclGetProcessGlobalValue(&defaultLibraryDir), TCL_GLOBAL_ONLY);
if (!osInfoInitialized) {
- HANDLE handle = LoadLibraryW(L"NTDLL");
- int(*getversion)(void *) = (int(*)(void *))GetProcAddress(handle, "RtlGetVersion");
- osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
- if (!getversion || getversion(&osInfo)) {
- GetVersionExW(&osInfo);
- }
- if (handle) {
- FreeLibrary(handle);
- }
- osInfoInitialized = 1;
+ HANDLE handle = LoadLibraryW(L"NTDLL");
+ int(__stdcall *getversion)(void *) =
+ (int(__stdcall *)(void *)) GetProcAddress(handle, "RtlGetVersion");
+ osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
+ if (!getversion || getversion(&osInfo)) {
+ GetVersionExW(&osInfo);
+ }
+ if (handle) {
+ FreeLibrary(handle);
+ }
+ osInfoInitialized = 1;
}
GetSystemInfo(&sys.info);