add extern "C" guards; close #126

This commit is contained in:
Yukihiro Matsumoto
2012-05-18 02:02:49 +09:00
parent e67c03529d
commit a4d3579e31
15 changed files with 139 additions and 5 deletions
+8
View File
@@ -28,6 +28,10 @@
#ifndef MRUBY_H
#define MRUBY_H
#if defined(__cplusplus)
extern "C" {
#endif
#include <stdlib.h>
#include "mrbconf.h"
@@ -584,4 +588,8 @@ int mrb_sourceline(void);
void ruby_default_signal(int sig);
mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id);
#if defined(__cplusplus)
} /* extern "C" { */
#endif
#endif /* MRUBY_H */