wrap function prototype by extern "C"

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-02 00:59:49 +09:00
parent 7721463a35
commit 873fae9f45
+7
View File
@@ -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;