wrap function prototype by extern "C"

parent 7721463a
......@@ -9,8 +9,15 @@
#define RITEBIN_EXT ".mrb"
#define C_EXT ".c"
#if defined(__cplusplus)
extern "C" {
void mrb_show_version(mrb_state *);
void mrb_show_copyright(mrb_state *);
}
#else
void mrb_show_version(mrb_state *);
void mrb_show_copyright(mrb_state *);
#endif
struct mrbc_args {
int argc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment