changeset 10546:7babc70a7b98 v8.0.0163

patch 8.0.0163: cannot build with Ruby 2.4 commit https://github.com/vim/vim/commit/6abda995a57306028c3dc5c62c9b15858e5a3bcf Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 9 21:10:31 2017 +0100 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 https://github.com/vim/vim/issues/1365)
author Christian Brabandt <cb@256bit.org>
date Mon, 09 Jan 2017 21:15:04 +0100
parents 12ff1590e546
children b1438ad6d6e8
files src/if_ruby.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -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},
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    163,
+/**/
     162,
 /**/
     161,