summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-16 19:17:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-16 19:17:09 (GMT)
commit13d49cff5e749a393d9f04dd098e83567786a124 (patch)
treedce9cf8dbf1f8aa42c0497c69f4327f7b83060ab /unix/tclUnixInit.c
parent50b330fbec4f9c2f5aaa93addf7bd016d9e783f3 (diff)
downloadtcl-13d49cff5e749a393d9f04dd098e83567786a124.zip
tcl-13d49cff5e749a393d9f04dd098e83567786a124.tar.gz
tcl-13d49cff5e749a393d9f04dd098e83567786a124.tar.bz2
Eliminate __stdcall usage: cygwin32 is no longer supported
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index c7b2efe..c7de6a8 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -36,14 +36,11 @@
#ifdef __cplusplus
extern "C" {
#endif
-#ifdef __clang__
-#pragma clang diagnostic ignored "-Wignored-attributes"
-#endif
-DLLIMPORT extern __stdcall unsigned char GetVersionExW(void *);
-DLLIMPORT extern __stdcall void *GetModuleHandleW(const void *);
-DLLIMPORT extern __stdcall void FreeLibrary(void *);
-DLLIMPORT extern __stdcall void *GetProcAddress(void *, const char *);
-DLLIMPORT extern __stdcall void GetSystemInfo(void *);
+DLLIMPORT extern unsigned char GetVersionExW(void *);
+DLLIMPORT extern void *GetModuleHandleW(const void *);
+DLLIMPORT extern void FreeLibrary(void *);
+DLLIMPORT extern void *GetProcAddress(void *, const char *);
+DLLIMPORT extern void GetSystemInfo(void *);
#ifdef __cplusplus
}
#endif
@@ -877,8 +874,8 @@ TclpSetVariables(
unameOK = 1;
if (!osInfoInitialized) {
void *handle = GetModuleHandleW(L"NTDLL");
- int(__stdcall *getversion)(void *) =
- (int(__stdcall *)(void *))GetProcAddress(handle, "RtlGetVersion");
+ int(*getversion)(void *) =
+ (int(*)(void *))GetProcAddress(handle, "RtlGetVersion");
osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
if (!getversion || getversion(&osInfo)) {
GetVersionExW(&osInfo);