From: Bram Moolenaar Date: Sat, 14 Jan 2017 19:12:01 +0000 (+0100) Subject: patch 8.0.0187: cant build with new Ruby version X-Git-Tag: v8.0.0187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe6ce331d94c24ad745d0bf329ec0a65a5c07cc9;p=vim 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) --- diff --git a/src/if_ruby.c b/src/if_ruby.c index bc6edc753..509d2f6cf 100644 --- 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) diff --git a/src/version.c b/src/version.c index 6511b3695..814934ded 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 */ +/**/ + 187, /**/ 186, /**/