Problem: Compiler warnings for the Ruby interface.
Solution: Undefine a few macros, fix initialization. (Ozaki Kiichi,
closes #5677)
/*
* Wrapper defines
*/
+// Ruby 2.7 actually expands the following symbols as macro.
+# if RUBY_VERSION >= 27
+# undef rb_define_global_function
+# undef rb_define_method
+# undef rb_define_module_function
+# undef rb_define_singleton_method
+# endif
+
# define rb_assoc_new dll_rb_assoc_new
# define rb_cObject (*dll_rb_cObject)
# define rb_class_new_instance dll_rb_class_new_instance
"vim_buffer",
{0, 0, buffer_dsize,
# if RUBY_VERSION >= 27
- 0, 0
+ 0, {0}
# else
{0, 0}
# endif
"vim_window",
{0, 0, window_dsize,
# if RUBY_VERSION >= 27
- 0, 0
+ 0, {0}
# else
{0, 0}
# endif
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 297,
/**/
296,
/**/