|
Zdenek Dohnal |
bda46b |
diff --git a/src/if_ruby.c b/src/if_ruby.c
|
|
Zdenek Dohnal |
bda46b |
index 9c91f31..e53e0ef 100644
|
|
Zdenek Dohnal |
bda46b |
--- a/src/if_ruby.c
|
|
Zdenek Dohnal |
bda46b |
+++ b/src/if_ruby.c
|
|
Zdenek Dohnal |
bda46b |
@@ -476,7 +476,11 @@ static void (*dll_ruby_init_stack)(VALUE*);
|
|
Zdenek Dohnal |
bda46b |
# endif
|
|
Zdenek Dohnal |
bda46b |
# endif
|
|
Zdenek Dohnal |
bda46b |
# ifdef RUBY19_OR_LATER
|
|
Zdenek Dohnal |
9c2551 |
+# if DYNAMIC_RUBY_VER >= 26
|
|
Zdenek Dohnal |
bda46b |
+static VALUE (*dll_rb_int2big)(intptr_t);
|
|
Zdenek Dohnal |
bda46b |
+# else
|
|
Zdenek Dohnal |
bda46b |
static VALUE (*dll_rb_int2big)(SIGNED_VALUE);
|
|
Zdenek Dohnal |
bda46b |
+# endif
|
|
Zdenek Dohnal |
bda46b |
# endif
|
|
Zdenek Dohnal |
bda46b |
|
|
Zdenek Dohnal |
bda46b |
# ifdef RUBY19_OR_LATER
|
|
Zdenek Dohnal |
bda46b |
@@ -506,7 +510,11 @@ SIGNED_VALUE rb_num2long_stub(VALUE x)
|
|
Zdenek Dohnal |
bda46b |
{
|
|
Zdenek Dohnal |
bda46b |
return dll_rb_num2long(x);
|
|
Zdenek Dohnal |
bda46b |
}
|
|
Zdenek Dohnal |
9c2551 |
+# if DYNAMIC_RUBY_VER >= 26
|
|
Zdenek Dohnal |
bda46b |
+VALUE rb_int2big_stub(intptr_t x)
|
|
Zdenek Dohnal |
bda46b |
+# else
|
|
Zdenek Dohnal |
bda46b |
VALUE rb_int2big_stub(SIGNED_VALUE x)
|
|
Zdenek Dohnal |
bda46b |
+# endif
|
|
Zdenek Dohnal |
bda46b |
{
|
|
Zdenek Dohnal |
bda46b |
return dll_rb_int2big(x);
|
|
Zdenek Dohnal |
bda46b |
}
|