ext/kgio/kgio.h in kgio-2.9.0 vs ext/kgio/kgio.h in kgio-2.9.0.2.gf33a
- old
+ new
@@ -94,6 +94,12 @@
/* we don't need these variants, we call kgio_autopush_send/recv directly */
static inline void kgio_autopush_write(VALUE io) { }
#else
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
+#endif
+
#endif /* KGIO_H */