diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-02-04 21:39:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-02-04 21:39:18 (GMT) |
commit | 6f4eb41b7618b4783184246c8a8484cbbd0f5aec (patch) | |
tree | e5e4717ef6f74ccc08485446f383ceadbecac12c /win/tkWinX.c | |
parent | 6c6084d66c4ec111a3e3c9f4af5518d929313fef (diff) | |
download | tk-6f4eb41b7618b4783184246c8a8484cbbd0f5aec.zip tk-6f4eb41b7618b4783184246c8a8484cbbd0f5aec.tar.gz tk-6f4eb41b7618b4783184246c8a8484cbbd0f5aec.tar.bz2 |
Add missing __stdcall (which crashes on win32)
Diffstat (limited to 'win/tkWinX.c')
-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 a37fa0a..5457d43 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -171,7 +171,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); |