diff options
author | Rob Holland <rob@inversepath.com> | 2008-06-23 16:33:16 +0100 |
---|---|---|
committer | Rob Holland <rob@inversepath.com> | 2008-06-23 16:33:16 +0100 |
commit | 54d7760e9fbce197f183cfc567a60245cfc96dc5 (patch) | |
tree | 450d22e87601b0d84a61a72a08f3d237054dbaad | |
parent | 1e993bdea8251303a199c928da4192353840b15d (diff) | |
download | third_party-sqlite3-ruby-54d7760e9fbce197f183cfc567a60245cfc96dc5.tar.gz third_party-sqlite3-ruby-54d7760e9fbce197f183cfc567a60245cfc96dc5.tar.xz third_party-sqlite3-ruby-54d7760e9fbce197f183cfc567a60245cfc96dc5.zip |
Fix linking against Ruby 1.8.5
-rw-r--r-- | ext/sqlite3_api/sqlite3_api.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/sqlite3_api/sqlite3_api.i b/ext/sqlite3_api/sqlite3_api.i index b21e3c8..784ef86 100644 --- a/ext/sqlite3_api/sqlite3_api.i +++ b/ext/sqlite3_api/sqlite3_api.i @@ -4,6 +4,14 @@ #include <sqlite3.h> #include "ruby.h" +#ifndef RSTRING_PTR +#define RSTRING_PTR(s) (RSTRING(s)->ptr) +#endif + +#ifndef RSTRING_LEN +#define RSTRING_LEN(s) (RSTRING(s)->len) +#endif + #define Init_API Init_sqlite3_api struct CallbackData { |