From 6abda995a57306028c3dc5c62c9b15858e5a3bcf Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 9 Jan 2017 21:10:31 +0100 Subject: 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) --- src/if_ruby.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/if_ruby.c b/src/if_ruby.c index fc72d33dd..bc6edc753 100644 --- 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}, diff --git a/src/version.c b/src/version.c index 1c4c57bb9..9b0809bf6 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 163, /**/ 162, /**/ -- cgit v1.2.3