From afbe211c606a79ccc3395c51eb70dd9e8a46849f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 27 Sep 2016 10:29:56 +0900 Subject: mrb_str_strlen() should be MRB_API; ref #3216 --- include/mruby/string.h | 2 +- src/string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mruby/string.h b/include/mruby/string.h index b66bc0dd1..c4af0963e 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -76,7 +76,7 @@ struct RString { #define RSTRING_LEN(s) RSTR_LEN(RSTRING(s)) #define RSTRING_CAPA(s) RSTR_CAPA(RSTRING(s)) #define RSTRING_END(s) (RSTRING_PTR(s) + RSTRING_LEN(s)) -mrb_int mrb_str_strlen(mrb_state*, struct RString*); +MRB_API mrb_int mrb_str_strlen(mrb_state*, struct RString*); #define MRB_STR_SHARED 1 #define MRB_STR_NOFREE 2 diff --git a/src/string.c b/src/string.c index 61aa08577..15fcc502a 100644 --- a/src/string.c +++ b/src/string.c @@ -576,7 +576,7 @@ str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos) } } -mrb_int +MRB_API mrb_int mrb_str_strlen(mrb_state *mrb, struct RString *s) { mrb_int i, max = RSTR_LEN(s); -- cgit v1.2.3