ruby-changes:45986
From: nobu <ko1@a...>
Date: Wed, 22 Mar 2017 22:55:12 +0900 (JST)
Subject: [ruby-changes:45986] nobu:r58057 (trunk): stringio.c: RB_INTEGER_TYPE_P
nobu 2017-03-22 22:55:03 +0900 (Wed, 22 Mar 2017) New Revision: 58057 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58057 Log: stringio.c: RB_INTEGER_TYPE_P * ext/stringio/stringio.c (RB_INTEGER_TYPE_P): fallback definition for 2.3 or earlier. Modified files: trunk/ext/stringio/stringio.c Index: ext/stringio/stringio.c =================================================================== --- ext/stringio/stringio.c (revision 58056) +++ ext/stringio/stringio.c (revision 58057) @@ -20,6 +20,10 @@ https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L20 #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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/