blob: 08a7a3ec92ba5bfdc91dac6993f7c8e6eb743a67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- ext/native_server.c.orig 2015-05-27 17:48:45 UTC
+++ ext/native_server.c
@@ -153,11 +153,7 @@ static VALUE mc_initialize(VALUE self, V
return self;
}
-#if defined(RUBY_19) || defined(RUBY_20)
#define RSTRING_SET_LEN(str, newlen) (rb_str_set_len(str, new_len))
-#else
-#define RSTRING_SET_LEN(str, newlen) (RSTRING(str)->len = new_len)
-#endif
static VALUE escape_key(VALUE key, bool* escaped) {
char* str = RSTRING_PTR(key);
|