split/Dvector/defs.h in tioga-1.5 vs split/Dvector/defs.h in tioga-1.6
- old
+ new
@@ -29,5 +29,11 @@
#else
#define is_okay_number(x) ((x) - (x) == 0.0)
#define isnan(x) ((x) != (x))
/* yes, as funny as it may look NaN != NaN, and that's the only one */
#endif
+
+/* Fix old versions of ruby.h */
+#ifndef RSTRING_PTR
+# define RSTRING_PTR(x) (RSTRING(x)->ptr)
+# define RSTRING_LEN(x) (RSTRING(x)->len)
+#endif