ext/kgio/ancient_ruby.h in kgio-2.4.2 vs ext/kgio/ancient_ruby.h in kgio-2.5.0

- old
+ new

@@ -1,13 +1,14 @@ #ifndef MISSING_ANCIENT_RUBY_H #define MISSING_ANCIENT_RUBY_H #ifndef HAVE_RB_STR_SET_LEN -static void rb_str_set_len(VALUE str, long len) +static void my_str_set_len(VALUE str, long len) { RSTRING(str)->len = len; RSTRING(str)->ptr[len] = '\0'; } +#define rb_str_set_len(str,len) my_str_set_len((str),(len)) #endif /* ! HAVE_RB_STR_SET_LEN */ #ifndef RSTRING_PTR # define RSTRING_PTR(s) (RSTRING(s)->ptr) #endif /* !defined(RSTRING_PTR) */