diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-02-04 21:40:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-02-04 21:40:35 (GMT) |
commit | 648a206e4e84223452459789db5cec14c7cb6fbe (patch) | |
tree | 9a29f203d113366ca3cc912b23adf30a3f5773b0 /win | |
parent | de445d487d5a80ad9c8a49d28f8db7d6a24b463e (diff) | |
parent | 6f4eb41b7618b4783184246c8a8484cbbd0f5aec (diff) | |
download | tk-648a206e4e84223452459789db5cec14c7cb6fbe.zip tk-648a206e4e84223452459789db5cec14c7cb6fbe.tar.gz tk-648a206e4e84223452459789db5cec14c7cb6fbe.tar.bz2 |
Add missing __stdcall (which crashes on win32)
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinX.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index 3857691..49ba438 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -125,7 +125,8 @@ TkGetServerInfo( if (!buffer[0]) { HANDLE handle = LoadLibraryW(L"NTDLL"); - int(*getversion)(void *) = (int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); + __stdcall int(*getversion)(void *) = + (__stdcall int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); if (!getversion || getversion(&os)) { GetVersionExW(&os); |