From bbf7b0ceba117e30662f9e2459d9c06360950a10 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Fri, 18 May 2012 12:45:09 +0900 Subject: add extern "C" guards --- src/compile.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/compile.h') diff --git a/src/compile.h b/src/compile.h index 7afa82e76..3cebb68f0 100644 --- a/src/compile.h +++ b/src/compile.h @@ -4,6 +4,13 @@ ** See Copyright Notice in mruby.h */ +#ifndef RUBY_COMPILE_H +#define RUBY_COMPILE_H 1 + +#if defined(__cplusplus) +extern "C" { +#endif + #include "mruby.h" #include #include @@ -93,3 +100,8 @@ int mrb_compile_file(mrb_state*,FILE*); int mrb_compile_string(mrb_state*,char*); int mrb_compile_nstring(mrb_state*,char*,size_t); +#if defined(__cplusplus) +} /* extern "C" { */ +#endif + +#endif /* MRUBY_COMPILE_H */ -- cgit v1.2.3