include: Define setjmpex prototype even when it's a builtin.

This commit is contained in:
Alexandre Julliard 2024-03-12 13:42:00 +01:00
parent 66f940a2ec
commit fd865a8386

View file

@ -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)