summaryrefslogtreecommitdiffstats
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-09 21:10:31 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-09 21:10:31 +0100
commit6abda995a57306028c3dc5c62c9b15858e5a3bcf (patch)
tree28829927c41186e7be9b99167ca9c34f63ef3c26 /src/if_ruby.c
parent009c7b2640b6e04c101118cc7d0dc5785f9aa116 (diff)
patch 8.0.0163: cannot build with Ruby 2.4v8.0.0163
Problem: Ruby 2.4 no longer supports rb_cFixnum. Solution: move rb_cFixnum into an #ifdef. (Kazuki Sakamoto, closes #1365)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index fc72d33dd4..bc6edc7536 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},