allow compilation without INCLUDE_ENCODING; close #105; encoding support should be removed altogether in the future

This commit is contained in:
Yukihiro Matsumoto
2012-05-08 01:23:31 +09:00
parent 5684a38382
commit 8b1a10ce4b
+7
View File
@@ -2388,6 +2388,13 @@ mrb_str_buf_append(mrb_state *mrb, mrb_value str, mrb_value str2)
return str;
}
#else
mrb_value
mrb_str_buf_append(mrb_state *mrb, mrb_value str, mrb_value str2)
{
mrb_str_cat(mrb, str, RSTRING_PTR(str2), RSTRING_LEN(str2));
return str;
}
#endif //INCLUDE_ENCODING
static inline void