setjmp.h: Use __intrinsic_setjmpex when using ucrt.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-05-27 19:13:09 +02:00 committed by Alexandre Julliard
parent 5d1fc25808
commit 0413e2a523
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ int __cdecl _setjmp(jmp_buf);
void __cdecl longjmp(jmp_buf,int); void __cdecl longjmp(jmp_buf,int);
#if defined(_WIN64) && defined(__GNUC__) #if defined(_WIN64) && defined(__GNUC__)
# ifdef _UCRT
# define _setjmpex __intrinsic_setjmpex
# endif
int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*); 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))