diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-01-07 11:15:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-01-07 11:15:37 +0000 |
commit | 77775e385fe92d1309c65c585b4643712c58e5ba (patch) | |
tree | dde7831902faf53cff89a1ce55651e32bddd157b | |
parent | 86f703bfd872536902e7f5293acea3ed0ba0f495 (diff) | |
download | kgio-77775e385fe92d1309c65c585b4643712c58e5ba.tar.gz |
Apparently Ruby 1.8.6 is still in use...
-rw-r--r-- | ext/kgio/ancient_ruby.h | 7 |
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 */ |