summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-16 19:44:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-16 19:44:25 (GMT)
commit43ff0b5efc8e10a866c2d03ef5a8a118f3fdae34 (patch)
treee84ffad87510b776c9d1d5bc647df2955eb5192a /unix/tclUnixInit.c
parent5e3388d323a49bae302ed7ff346f6d8b09918e78 (diff)
parent13d49cff5e749a393d9f04dd098e83567786a124 (diff)
downloadtcl-43ff0b5efc8e10a866c2d03ef5a8a118f3fdae34.zip
tcl-43ff0b5efc8e10a866c2d03ef5a8a118f3fdae34.tar.gz
tcl-43ff0b5efc8e10a866c2d03ef5a8a118f3fdae34.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 f276e71..06f5249 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -27,14 +27,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
@@ -853,8 +850,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);