about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-01-07 11:15:37 +0000
committerEric Wong <normalperson@yhbt.net>2012-01-07 11:15:37 +0000
commit77775e385fe92d1309c65c585b4643712c58e5ba (patch)
treedde7831902faf53cff89a1ce55651e32bddd157b
parent86f703bfd872536902e7f5293acea3ed0ba0f495 (diff)
downloadkgio-77775e385fe92d1309c65c585b4643712c58e5ba.tar.gz
Apparently Ruby 1.8.6 is still in use...
-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 */