Commit d91ad4ca authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 6d98dc7c
...@@ -149,7 +149,7 @@ _ACRTIMP void __cdecl longjmp(jmp_buf,int); ...@@ -149,7 +149,7 @@ _ACRTIMP void __cdecl longjmp(jmp_buf,int);
# ifdef _UCRT # ifdef _UCRT
# define _setjmpex __intrinsic_setjmpex # define _setjmpex __intrinsic_setjmpex
# endif # endif
# ifdef __GNUC__ # if defined(__GNUC__) || defined(__clang__)
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*); _ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*);
# define setjmp(buf) _setjmpex(buf,__builtin_frame_address(0)) # define setjmp(buf) _setjmpex(buf,__builtin_frame_address(0))
# define setjmpex(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 ...@@ -158,7 +158,7 @@ _ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(j
# ifdef _UCRT # ifdef _UCRT
# define _setjmp __intrinsic_setjmp # define _setjmp __intrinsic_setjmp
# endif # endif
# ifdef __GNUC__ # if defined(__GNUC__) || defined(__clang__)
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmp(jmp_buf); _ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmp(jmp_buf);
# else # else
_ACRTIMP int __cdecl _setjmp(jmp_buf); _ACRTIMP int __cdecl _setjmp(jmp_buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment