mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add extern "C" guards; close #126
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
#ifndef MRUBY_STRING_H
|
||||
#define MRUBY_STRING_H
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef INCLUDE_ENCODING
|
||||
#include "encoding.h"
|
||||
#endif
|
||||
@@ -130,4 +134,8 @@ int mrb_symname_p(const char *name);
|
||||
mrb_value mrb_tainted_str_new(mrb_state *mrb, const char *ptr, long len);
|
||||
int mrb_str_cmp(mrb_state *mrb, mrb_value str1, mrb_value str2);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} /* extern "C" { */
|
||||
#endif
|
||||
|
||||
#endif /* MRUBY_STRING_H */
|
||||
|
||||
Reference in New Issue
Block a user