Clang supports _setjmp but, like most MSVC-style builtins, it still requires function declaration.
From: Jacek Caban jacek@codeweavers.com
Clang supports _setjmp but, like most MSVC-style builtins, it still requires function declaration. --- include/msvcrt/setjmp.h | 2 -- 1 file changed, 2 deletions(-)
diff --git a/include/msvcrt/setjmp.h b/include/msvcrt/setjmp.h index fca5543a04b..0978e39c18a 100644 --- a/include/msvcrt/setjmp.h +++ b/include/msvcrt/setjmp.h @@ -160,9 +160,7 @@ _ACRTIMP void __cdecl longjmp(jmp_buf,int); #endif
#ifdef __i386__ -# if defined(_setjmp) || !__has_builtin(_setjmp) _ACRTIMP int __cdecl __attribute__((__nothrow__,__returns_twice__)) _setjmp(jmp_buf); -# endif # define setjmp(buf) _setjmp((buf)) #elif !defined(_setjmpex) && __has_builtin(_setjmpex) _ACRTIMP int __cdecl __attribute__((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf);