summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2014-02-04 21:39:18 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2014-02-04 21:39:18 (GMT)
commit5a55994e4713a14144fc6d29b3f8a129671ff478 (patch)
treee5e4717ef6f74ccc08485446f383ceadbecac12c /win
parent61ecb5fb5ce6b1d15d57c3228e2e9868d08a71ef (diff)
downloadtk-5a55994e4713a14144fc6d29b3f8a129671ff478.zip
tk-5a55994e4713a14144fc6d29b3f8a129671ff478.tar.gz
tk-5a55994e4713a14144fc6d29b3f8a129671ff478.tar.bz2
Add missing __stdcall (which crashes on win32)
FossilOrigin-Name: f4682e0106fe84fa0c2193ed176faa1b34322a4a
Diffstat (limited to 'win')
-rw-r--r--win/tkWinX.c3
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);