Skip to content

Commit 4fc69ce

Browse files
committed
Revert "mruby/throw.h: do not use __builtin_setjmp for GCC; close #5950"
This reverts commit 9cf49d0. This change caused flaky tests on MinGW. I now remember it was introduced for MINGW64 to address #5133. Sorry.
1 parent 0d07af1 commit 4fc69ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/mruby/throw.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ typedef mrb_int mrb_jmpbuf_impl;
3333
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
3434
#define MRB_SETJMP _setjmp
3535
#define MRB_LONGJMP _longjmp
36+
#elif defined(__MINGW64__) && defined(__GNUC__) && __GNUC__ >= 4
37+
#define MRB_SETJMP __builtin_setjmp
38+
#define MRB_LONGJMP __builtin_longjmp
3639
#else
3740
#define MRB_SETJMP setjmp
3841
#define MRB_LONGJMP longjmp

0 commit comments

Comments
 (0)