changeset 10595:dbaad101b1e1 v8.0.0187

patch 8.0.0187: cant build with new Ruby version commit https://github.com/vim/vim/commit/fe6ce331d94c24ad745d0bf329ec0a65a5c07cc9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 14 20:12:01 2017 +0100 patch 8.0.0187: cant build with new Ruby version Problem: Building with a new Ruby version fails. Solution: Use ruby_sysinit() instead of NtInitialize(). (Tomas Volf, closes #1382)
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Jan 2017 20:15:05 +0100
parents e449eb119db6
children b9ddd02d90be
files src/if_ruby.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -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)
--- 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 */
 /**/
+    187,
+/**/
     186,
 /**/
     185,