summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 21:52:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 21:52:46 (GMT)
commitd16daeb28a40a95fa54d322134a76c64023beda6 (patch)
tree13c4782f793f326f40fb1eed40e22561bf6b2739
parent20c43bb48a2e8a63a84389e3987f43e399522e93 (diff)
parent7986522df51e69499b127ab05a24f697b5ac0849 (diff)
downloadtcl-d16daeb28a40a95fa54d322134a76c64023beda6.zip
tcl-d16daeb28a40a95fa54d322134a76c64023beda6.tar.gz
tcl-d16daeb28a40a95fa54d322134a76c64023beda6.tar.bz2
Satisfy required position of __stdcall from VC++
-rw-r--r--unix/tclUnixInit.c4
-rw-r--r--win/tclWinInit.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 7fe511b..1617cba 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -866,8 +866,8 @@ TclpSetVariables(
unameOK = 1;
if (!osInfoInitialized) {
HANDLE handle = LoadLibraryW(L"NTDLL");
- __stdcall int(*getversion)(void *) =
- (__stdcall int(*)(void *))GetProcAddress(handle, "RtlGetVersion");
+ int(__stdcall *getversion)(void *) =
+ (int(__stdcall *)(void *))GetProcAddress(handle, "RtlGetVersion");
osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
if (!getversion || getversion(&osInfo)) {
GetVersionExW(&osInfo);
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index daa4d37..2c21d38 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -541,8 +541,8 @@ TclpSetVariables(
if (!osInfoInitialized) {
HANDLE handle = LoadLibraryW(L"NTDLL");
- __stdcall int(*getversion)(void *) =
- (__stdcall int(*)(void *)) GetProcAddress(handle, "RtlGetVersion");
+ int(__stdcall *getversion)(void *) =
+ (int(__stdcall *)(void *)) GetProcAddress(handle, "RtlGetVersion");
osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
if (!getversion || getversion(&osInfo)) {
GetVersionExW(&osInfo);