]> granicus.if.org Git - vim/commitdiff
patch 8.0.0163: cannot build with Ruby 2.4 v8.0.0163
authorBram Moolenaar <Bram@vim.org>
Mon, 9 Jan 2017 20:10:31 +0000 (21:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 9 Jan 2017 20:10:31 +0000 (21:10 +0100)
Problem:    Ruby 2.4 no longer supports rb_cFixnum.
Solution:   move rb_cFixnum into an #ifdef. (Kazuki Sakamoto, closes #1365)

src/if_ruby.c
src/version.c

index fc72d33dd45d6ecbb92b76127225b70eb6bf646c..bc6edc7536f0f34a1b859b4e0ef7ec29ab37e1cb 100644 (file)
@@ -514,9 +514,10 @@ static struct
 {
     {"rb_assoc_new", (RUBY_PROC*)&dll_rb_assoc_new},
     {"rb_cFalseClass", (RUBY_PROC*)&dll_rb_cFalseClass},
-    {"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
 # if defined(USE_RUBY_INTEGER)
     {"rb_cInteger", (RUBY_PROC*)&dll_rb_cInteger},
+# else
+    {"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
 # endif
 # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
     {"rb_cFloat", (RUBY_PROC*)&dll_rb_cFloat},
index 1c4c57bb9ba988ca1626969073cf923489fbbbe4..9b0809bf6ab3298c2da07effb9ab7ba328f02aa4 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    163,
 /**/
     162,
 /**/