[PATCH 0/1] MR6208: include: Always declare _setjmp in setjmp.h on i386 targets.
Clang supports _setjmp but, like most MSVC-style builtins, it still requires function declaration. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6208
From: Jacek Caban <jacek(a)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); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6208
participants (2)
-
Jacek Caban -
Jacek Caban (@jacek)