diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-26 22:40:22 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-26 22:40:22 +0000 |
commit | 435f18f513fdaa77c9922f564df577110641a0a2 (patch) | |
tree | 68ca78f40544ec6f65b428dd513dcaec83793bec /ext/tk/stubs.c | |
parent | 1fe610b5885217a9bac6d9a5ef74c79589c5fbca (diff) | |
download | ruby-435f18f513fdaa77c9922f564df577110641a0a2.tar.gz |
* ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
with old ruby 1.8.x.
* ext/tk/tkutil/tkutil.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/stubs.c')
-rw-r--r-- | ext/tk/stubs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/tk/stubs.c b/ext/tk/stubs.c index 4388fb294d..762fe5ea8d 100644 --- a/ext/tk/stubs.c +++ b/ext/tk/stubs.c @@ -6,6 +6,12 @@ #include "ruby.h" #include "stubs.h" + +#if !defined(RSTRING_PTR) +#define RSTRING_PTR(s) (RSTRING(s)->ptr) +#define RSTRING_LEN(s) (RSTRING(s)->len) +#endif + #include <tcl.h> #include <tk.h> |