Permalink
Browse files

Define jmpbuf_id outside of `extern "C"`; ref #3470

  • Loading branch information...
matz committed Mar 2, 2017
1 parent 2d858ca commit ffdf7be7235717fb1cd30e54c24c5383f705f110
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/vm.c
View
@@ -2579,5 +2579,11 @@ mrb_top_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int sta
}
#if defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
# if !defined(MRB_ENABLE_CXX_ABI)
} /* end of extern "C" */
# endif
mrb_int mrb_jmpbuf::jmpbuf_id = 0;
# if !defined(MRB_ENABLE_CXX_ABI)
extern "C" {
# endif
#endif

0 comments on commit ffdf7be

Please sign in to comment.