Skip to content

Commit

Permalink
mruby/throw.h: do not use __builtin_setjmp for GCC; close #5950
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 12, 2023
1 parent 924d605 commit 9cf49d0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/mruby/throw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cf49d0

Please sign in to comment.