25 lines
794 B
Diff
25 lines
794 B
Diff
|
--- subversion-1.6.0/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h 2009-02-16 21:08:57.000000000 +0100
|
||
|
+++ subversion-1.6.0/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h-gil 2009-04-09 10:45:31.000000000 +0200
|
||
|
@@ -49,6 +49,21 @@
|
||
|
#define RSTRING_PTR(x) RSTRING(x)->ptr
|
||
|
#endif
|
||
|
|
||
|
+/* If RARRAY_PTR is not defined in ruby.h then we have Ruby 1.8.5 or lower.
|
||
|
+ These definitions are correct for Ruby 1.8.x but not 1.9.0+. */
|
||
|
+#ifndef RARRAY_PTR
|
||
|
+#define RARRAY_PTR(s) (RARRAY(s)->ptr)
|
||
|
+#endif
|
||
|
+#ifndef RARRAY_LEN
|
||
|
+#define RARRAY_LEN(s) (RARRAY(s)->len)
|
||
|
+#endif
|
||
|
+#ifndef RSTRING_PTR
|
||
|
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
||
|
+#endif
|
||
|
+#ifndef RSTRING_LEN
|
||
|
+#define RSTRING_LEN(s) (RSTRING(s)->len)
|
||
|
+#endif
|
||
|
+
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif /* __cplusplus */
|