在 2026-5-30 23:35, Pali Rohár 写道:
Both msvcrt and ucrt expect from signal handler to use __cdecl. --- mingw-w64-headers/crt/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/mingw-w64-headers/crt/signal.h b/mingw-w64-headers/crt/signal.h index ea59ecbb3618..d4bb989758dd 100644 --- a/mingw-w64-headers/crt/signal.h +++ b/mingw-w64-headers/crt/signal.h @@ -45,7 +45,7 @@ extern "C" { #endif #endif- typedef void (*__p_sig_fn_t)(int);+ typedef void (__cdecl*__p_sig_fn_t)(int);#define SIG_DFL (__p_sig_fn_t)0#define SIG_IGN (__p_sig_fn_t)1
Pushed this one too, with a space added after `__cdecl`. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
