add extern "C" guards

This commit is contained in:
Yukihiro Matsumoto
2012-05-18 12:45:09 +09:00
parent ec6c6df995
commit bbf7b0ceba
3 changed files with 23 additions and 4 deletions
+3 -4
View File
@@ -4,14 +4,13 @@
** See Copyright Notice in mruby.h
*/
#ifndef RUBY_DATA_H
#define RUBY_DATA_H 1
#ifndef MRUBY_DATA_H
#define MRUBY_DATA_H 1
#if defined(__cplusplus)
extern "C" {
#endif
struct mrb_data_type {
const char *struct_name;
void (*dfree)(mrb_state *mrb, void*);
@@ -48,4 +47,4 @@ void *mrb_check_datatype(mrb_state *mrb, mrb_value, const struct mrb_data_type*)
} /* extern "C" { */
#endif
#endif /* RUBY_DATA_H */
#endif /* MRUBY_DATA_H */