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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-03-02 20:38:16 +09:00
parent 2d858cab3d
commit ffdf7be723
+6
View File
@@ -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