mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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 <enumdev@enumerated.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
a025a46d41
commit
eea85983cb
@@ -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);
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2036,
|
||||
/**/
|
||||
2035,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user