From: EnumDev Date: Thu, 1 Jan 2026 14:25:38 +0000 (+0000) Subject: patch 9.1.2036: if_ruby: build error with ruby 4.0 X-Git-Tag: v9.1.2036^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eea85983cbe266f2b1be2a7e2860cb0dbe58c291;p=thirdparty%2Fvim.git patch 9.1.2036: if_ruby: build error with ruby 4.0 Problem: if_ruby: build error with ruby 4.0 (Mamoru Tasaka) Solution: Always define rb_check_typeddata (EnumDev). fixes: #18884 closes: #19051 Signed-off-by: EnumDev Signed-off-by: Christian Brabandt --- diff --git a/src/if_ruby.c b/src/if_ruby.c index 6af508becc..49fdc34dd5 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -244,6 +244,9 @@ static int ruby_convert_to_vim_value(VALUE val, typval_T *rettv); # define rb_check_type dll_rb_check_type # endif # ifdef USE_TYPEDDATA +# if RUBY_VERSION >= 40 +# define rbimpl_check_typeddata dll_rbimpl_check_typeddata +# endif # define rb_check_typeddata dll_rb_check_typeddata # endif # define rb_class_path dll_rb_class_path @@ -373,6 +376,9 @@ VALUE *dll_rb_cTrueClass; static VALUE (*dll_rb_class_new_instance) (int,VALUE*,VALUE); static void (*dll_rb_check_type) (VALUE,int); # ifdef USE_TYPEDDATA +# if RUBY_VERSION >= 40 +static void *(*dll_rbimpl_check_typeddata) (VALUE,const rb_data_type_t *); +# endif static void *(*dll_rb_check_typeddata) (VALUE,const rb_data_type_t *); # endif static VALUE (*dll_rb_class_path) (VALUE); diff --git a/src/version.c b/src/version.c index c04f67b90b..77eed6f887 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2036, /**/ 2035, /**/