0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0163: cannot build with Ruby 2.4

Problem:    Ruby 2.4 no longer supports rb_cFixnum.
Solution:   move rb_cFixnum into an #ifdef. (Kazuki Sakamoto, closes #1365)
This commit is contained in:
Bram Moolenaar
2017-01-09 21:10:31 +01:00
parent 009c7b2640
commit 6abda995a5
2 changed files with 4 additions and 1 deletions

View File

@@ -514,9 +514,10 @@ static struct
{ {
{"rb_assoc_new", (RUBY_PROC*)&dll_rb_assoc_new}, {"rb_assoc_new", (RUBY_PROC*)&dll_rb_assoc_new},
{"rb_cFalseClass", (RUBY_PROC*)&dll_rb_cFalseClass}, {"rb_cFalseClass", (RUBY_PROC*)&dll_rb_cFalseClass},
{"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
# if defined(USE_RUBY_INTEGER) # if defined(USE_RUBY_INTEGER)
{"rb_cInteger", (RUBY_PROC*)&dll_rb_cInteger}, {"rb_cInteger", (RUBY_PROC*)&dll_rb_cInteger},
# else
{"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
# endif # endif
# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
{"rb_cFloat", (RUBY_PROC*)&dll_rb_cFloat}, {"rb_cFloat", (RUBY_PROC*)&dll_rb_cFloat},

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
163,
/**/ /**/
162, 162,
/**/ /**/