diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-04 21:33:13 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-04 21:33:13 (GMT) |
| commit | 589e2eeca187b73dd181ab2fc09d9ee0caae957c (patch) | |
| tree | 58cf7d808c6aa74dc785c5d6d8dd7de58f2bd533 /unix/tclUnixInit.c | |
| parent | f8bffa2a7614782af8f5ee0a2f330ae05ab05a05 (diff) | |
| parent | 9abcd2c1f79455ad3e0a0ec6ce421d40a3dd0a98 (diff) | |
| download | tcl-589e2eeca187b73dd181ab2fc09d9ee0caae957c.zip tcl-589e2eeca187b73dd181ab2fc09d9ee0caae957c.tar.gz tcl-589e2eeca187b73dd181ab2fc09d9ee0caae957c.tar.bz2 | |
Add missing __stdcall (which crashes on win32), and clean-up indenting
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index f8acad5..7fe511b 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -865,16 +865,17 @@ TclpSetVariables( #ifdef __CYGWIN__ unameOK = 1; 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"); + __stdcall int(*getversion)(void *) = + (__stdcall int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); + osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); + if (!getversion || getversion(&osInfo)) { + GetVersionExW(&osInfo); + } + if (handle) { + FreeLibrary(handle); + } + osInfoInitialized = 1; } GetSystemInfo(&sysInfo); |
