From 8b1a10ce4b5979cdad6531c3b6bc634ee868dcec Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Tue, 8 May 2012 01:23:31 +0900 Subject: allow compilation without INCLUDE_ENCODING; close #105; encoding support should be removed altogether in the future --- src/string.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/string.c b/src/string.c index 466c3dee9..183763bf2 100644 --- a/src/string.c +++ b/src/string.c @@ -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 -- cgit v1.2.3