]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.705 v7.4.705
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Apr 2015 13:25:31 +0000 (15:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Apr 2015 13:25:31 +0000 (15:25 +0200)
Problem:    Can't build with Ruby 2.2.
Solution:   Add #ifdefs to handle the incompatible change. (Andrei Olsen)

src/if_ruby.c
src/version.c

index 3b9f476619ef0229f879bdc24a27df82ee26e5cf..3767bf33460e20b2d8917b86bd6eb514ebe9e13e 100644 (file)
@@ -396,7 +396,11 @@ static void (*dll_rb_gc_writebarrier_unprotect)(VALUE obj);
 # endif
 
 # if defined(RUBY19_OR_LATER) && !defined(PROTO)
+#  if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
+long rb_num2long_stub(VALUE x)
+#  else
 SIGNED_VALUE rb_num2long_stub(VALUE x)
+#  endif
 {
     return dll_rb_num2long(x);
 }
@@ -421,7 +425,11 @@ rb_float_new_in_heap(double d)
 {
     return dll_rb_float_new(d);
 }
+#   if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
+unsigned long rb_num2ulong(VALUE x)
+#   else
 VALUE rb_num2ulong(VALUE x)
+#   endif
 {
     return (long)RSHIFT((SIGNED_VALUE)(x),1);
 }
index 11dd808f4e01d8483ad806e96b8abe940b3f2475..0b2d6fe1abf39526155a4c7223a1c53bff723968 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    705,
 /**/
     704,
 /**/