Problem: Can't build with Ruby 2.2.
Solution: Add #ifdefs to handle the incompatible change. (Andrei Olsen)
# endif
# if defined(RUBY19_OR_LATER) && !defined(PROTO)
+# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
+long rb_num2long_stub(VALUE x)
+# else
SIGNED_VALUE rb_num2long_stub(VALUE x)
+# endif
{
return dll_rb_num2long(x);
}
{
return dll_rb_float_new(d);
}
+# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
+unsigned long rb_num2ulong(VALUE x)
+# else
VALUE rb_num2ulong(VALUE x)
+# endif
{
return (long)RSHIFT((SIGNED_VALUE)(x),1);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 705,
/**/
704,
/**/