]> granicus.if.org Git - vim/commitdiff
patch 8.0.0187: cant build with new Ruby version v8.0.0187
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 19:12:01 +0000 (20:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 19:12:01 +0000 (20:12 +0100)
Problem:    Building with a new Ruby version fails.
Solution:   Use ruby_sysinit() instead of NtInitialize(). (Tomas Volf,
            closes #1382)

src/if_ruby.c
src/version.c

index bc6edc7536f0f34a1b859b4e0ef7ec29ab37e1cb..509d2f6cf1d5e6137739b5899145e7491501f999 100644 (file)
@@ -862,7 +862,11 @@ static int ensure_ruby_initialized(void)
            int argc = 1;
            char *argv[] = {"gvim.exe"};
            char **argvp = argv;
+# ifdef RUBY19_OR_LATER
+           ruby_sysinit(&argc, &argvp);
+# else
            NtInitialize(&argc, &argvp);
+# endif
 #endif
            {
 #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
index 6511b36957311f86d78c47f558afe7b91d4b61db..814934ded89ee9b864475a0300494dc2d8b7ba1b 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    187,
 /**/
     186,
 /**/