Permalink
Browse files

added define so RSTRING so it works on 1.8.5

  • Loading branch information...
1 parent 90e90ed commit eb97a4a20136c099d4fdfde453d9dded75b17295 @pauldix pauldix committed Nov 14, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 ext/typhoeus/native.h
View
@@ -12,3 +12,10 @@ extern void init_typhoeus_easy();
extern void init_typhoeus_multi();
#endif
+
+#ifndef RSTRING_PTR
+
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
+#define RSTRING_LEN(s) (RSTRING(s)->len)
+
+#endif

0 comments on commit eb97a4a

Please sign in to comment.