ext/kgio/kgio.h in kgio-2.9.2 vs ext/kgio/kgio.h in kgio-2.9.3
- old
+ new
@@ -97,9 +97,11 @@
static inline void kgio_autopush_write(VALUE io) { kgio_autopush_send(io); }
#endif
/* prefer rb_str_subseq because we don't use negative offsets */
#ifndef HAVE_RB_STR_SUBSEQ
-#define rb_str_subseq rb_str_substr
+#define MY_STR_SUBSEQ(str,beg,len) rb_str_substr((str),(beg),(len))
+#else
+#define MY_STR_SUBSEQ(str,beg,len) rb_str_subseq((str),(beg),(len))
#endif
#endif /* KGIO_H */