summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-08 01:23:31 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-08 01:23:31 +0900
commit8b1a10ce4b5979cdad6531c3b6bc634ee868dcec (patch)
treee5d51966dda2dac32ed8913862bead08d796c661
parent5684a383827075f331a9249ef624b9cc60a2b632 (diff)
downloadmruby-8b1a10ce4b5979cdad6531c3b6bc634ee868dcec.tar.gz
mruby-8b1a10ce4b5979cdad6531c3b6bc634ee868dcec.zip
allow compilation without INCLUDE_ENCODING; close #105; encoding support should be removed altogether in the future
-rw-r--r--src/string.c7
1 files changed, 7 insertions, 0 deletions
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