Permalink
Browse files

wrap function prototype by extern "C"

  • Loading branch information...
1 parent 7721463 commit 873fae9f4505a5f2b5146f969917e8b083269f36 @matz matz committed Mar 1, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 tools/mrbc/mrbc.c
View
@@ -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;

0 comments on commit 873fae9

Please sign in to comment.