mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
stringio.c: RB_INTEGER_TYPE_P
* ext/stringio/stringio.c (RB_INTEGER_TYPE_P): fallback definition for 2.3 or earlier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eaf4f2ec85
commit
0130bb01ba
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@
|
|||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifndef RB_INTEGER_TYPE_P
|
||||
# define RB_INTEGER_TYPE_P(c) (FIXNUM_P(c) || RB_TYPE_P(c, T_BIGNUM))
|
||||
#endif
|
||||
|
||||
struct StringIO {
|
||||
VALUE string;
|
||||
rb_encoding *enc;
|
||||
|
|
Loading…
Reference in a new issue