Add `MRB_API` to `mrb_str_modify_keep_ascii()`
MODIFY
include/mruby/string.h
include/mruby/string.h
@@ -108,6 +108,8 @@ MRB_API mrb_int mrb_str_strlen(mrb_state*, struct RString*);
void mrb_gc_free_str(mrb_state*, struct RString*);
+MRB_API void mrb_str_modify_keep_ascii(mrb_state *mrb, struct RString *s);
+
/*
* Finds the index of a substring in a string
*/
@@ -453,7 +455,6 @@ mrb_value mrb_str_inspect(mrb_state *mrb, mrb_value str);
mrb_bool mrb_str_beg_len(mrb_int str_len, mrb_int *begp, mrb_int *lenp);
mrb_value mrb_str_byte_subseq(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len);
-void mrb_str_modify_keep_ascii(mrb_state *mrb, struct RString *s);
MRB_INLINE void
mrb_str_modify(mrb_state *mrb, struct RString *s)

MODIFY
src/string.c
src/string.c
@@ -706,7 +706,7 @@ mrb_locale_from_utf8(const char *utf8, int len)
}
#endif
-void
+MRB_API void
mrb_str_modify_keep_ascii(mrb_state *mrb, struct RString *s)
{
mrb_check_frozen(mrb, s);

Add `MRB_API` to `mrb_str_modify_keep_ascii()`