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
@@ -7,6 +7,10 @@
#ifndef MRUBY_IREP_H
#define MRUBY_IREP_H
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct mrb_irep {
int idx;
@@ -26,4 +30,8 @@ typedef struct mrb_irep {
void mrb_add_irep(mrb_state *mrb, int n);
#if defined(__cplusplus)
} /* extern "C" { */
#endif
#endif /* MRUBY_IREP_H */