Jacek Caban : setjmp.h: Use __intrinsic_setjmpex when using ucrt.

Alexandre Julliard julliard at winehq.org
Wed May 27 15:19:31 CDT 2020


Module: wine
Branch: master
Commit: 0413e2a523e96b70ea4e8ba598b61460b1500d75
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0413e2a523e96b70ea4e8ba598b61460b1500d75

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed May 27 19:13:09 2020 +0200

setjmp.h: Use __intrinsic_setjmpex when using ucrt.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/msvcrt/setjmp.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/msvcrt/setjmp.h b/include/msvcrt/setjmp.h
index 837a876820..4b73703629 100644
--- a/include/msvcrt/setjmp.h
+++ b/include/msvcrt/setjmp.h
@@ -147,6 +147,9 @@ int __cdecl _setjmp(jmp_buf);
 void __cdecl longjmp(jmp_buf,int);
 
 #if defined(_WIN64) && defined(__GNUC__)
+# ifdef _UCRT
+#  define _setjmpex __intrinsic_setjmpex
+# endif
 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))




More information about the wine-cvs mailing list