mruby/throw.h: do not use __builtin_setjmp for GCC; close #5950

https://gcc.gnu.org/onlinedocs/gcc/Nonlocal-Gotos.html
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-03-12 16:52:10 +09:00
parent 924d605712
commit 9cf49d08b4
-3
View File
@@ -33,9 +33,6 @@ typedef mrb_int mrb_jmpbuf_impl;
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define MRB_SETJMP _setjmp
#define MRB_LONGJMP _longjmp
#elif defined(__MINGW64__) && defined(__GNUC__) && __GNUC__ >= 4
#define MRB_SETJMP __builtin_setjmp
#define MRB_LONGJMP __builtin_longjmp
#else
#define MRB_SETJMP setjmp
#define MRB_LONGJMP longjmp