about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/kgio/ancient_ruby.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/kgio/ancient_ruby.h b/ext/kgio/ancient_ruby.h
index e85ee60..cda0917 100644
--- a/ext/kgio/ancient_ruby.h
+++ b/ext/kgio/ancient_ruby.h
@@ -17,4 +17,11 @@ static void my_str_set_len(VALUE str, long len)
 #  define RSTRING_LEN(s) (RSTRING(s)->len)
 #endif /* !defined(RSTRING_LEN) */
 
+#ifndef RARRAY_PTR
+#  define RARRAY_PTR(s) (RARRAY(s)->ptr)
+#endif /* !defined(RARRAY_PTR) */
+#ifndef RARRAY_LEN
+#  define RARRAY_LEN(s) (RARRAY(s)->len)
+#endif /* !defined(RARRAY_LEN) */
+
 #endif /* MISSING_ANCIENT_RUBY_H */