diff --git a/src/if_ruby.c b/src/if_ruby.c index 34fc0ed1cb..c2a2ec3f78 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -124,7 +124,7 @@ #endif #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 -# define rb_ary_detransient (*dll_rb_ary_detransient) +# define rb_ary_detransient rb_ary_detransient_stub #endif #include @@ -549,6 +549,13 @@ void rb_gc_writebarrier_unprotect_stub(VALUE obj) # endif # endif +# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 +void rb_ary_detransient_stub(VALUE x) +{ + dll_rb_ary_detransient(x); +} +# endif + static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */ /* diff --git a/src/version.c b/src/version.c index 0693be11db..95f3859020 100644 --- a/src/version.c +++ b/src/version.c @@ -799,6 +799,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 704, /**/ 703, /**/