diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 00:02:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 00:02:59 +0000 |
commit | 9816f87815d27405e1f6c53ed20ad51bdca570ce (patch) | |
tree | fae7cd41051cfb7c9f83635aee8a48921857fe04 /ext/io/console/console.c | |
parent | cc91082af8279f878d03f722419b5862b2c5c95e (diff) |
io/console: rb_sym2str
* ext/io/console/console.c (rb_sym2str): fallback definition for
older ruby. [ruby-core:74953] [Bug #12284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r-- | ext/io/console/console.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index ea5ff129e7..ec7ecdafe7 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -103,6 +103,10 @@ rb_f_send(int argc, VALUE *argv, VALUE recv) } #endif +#ifndef HAVE_RB_SYM2STR +# define rb_sym2str(sym) rb_id2str(SYM2ID(sym)) +#endif + typedef struct { int vmin; int vtime; |