From fd865a838695157affe5a5d18c63d416b0d0149f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 12 Mar 2024 13:42:00 +0100 Subject: [PATCH] include: Define setjmpex prototype even when it's a builtin. --- include/msvcrt/setjmp.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/msvcrt/setjmp.h b/include/msvcrt/setjmp.h index 38f9ba682ad..fca5543a04b 100644 --- a/include/msvcrt/setjmp.h +++ b/include/msvcrt/setjmp.h @@ -164,10 +164,11 @@ _ACRTIMP void __cdecl longjmp(jmp_buf,int); _ACRTIMP int __cdecl __attribute__((__nothrow__,__returns_twice__)) _setjmp(jmp_buf); # endif # define setjmp(buf) _setjmp((buf)) -#else /* __i386__ */ -# if defined(_setjmpex) || !__has_builtin(_setjmpex) +#elif !defined(_setjmpex) && __has_builtin(_setjmpex) +_ACRTIMP int __cdecl __attribute__((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf); +# define setjmp(buf) _setjmpex(buf) +#else _ACRTIMP int __cdecl __attribute__((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*); -# endif # if __has_builtin(__builtin_sponentry) # define setjmp(buf) _setjmpex((buf), __builtin_sponentry()) # elif __has_builtin(__builtin_frame_address)