setjmp.h: Use GCC-style setjmp on Clang in MSVC mode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-12-11 17:36:24 +01:00 committed by Alexandre Julliard
parent 6d98dc7ce8
commit d91ad4ca24
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ _ACRTIMP void __cdecl longjmp(jmp_buf,int);
# ifdef _UCRT
# define _setjmpex __intrinsic_setjmpex
# endif
# ifdef __GNUC__
# if defined(__GNUC__) || defined(__clang__)
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*);
# define setjmp(buf) _setjmpex(buf,__builtin_frame_address(0))
# define setjmpex(buf) _setjmpex(buf,__builtin_frame_address(0))
@ -158,7 +158,7 @@ _ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(j
# ifdef _UCRT
# define _setjmp __intrinsic_setjmp
# endif
# ifdef __GNUC__
# if defined(__GNUC__) || defined(__clang__)
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmp(jmp_buf);
# else
_ACRTIMP int __cdecl _setjmp(jmp_buf);