# HG changeset patch # User Christian Brabandt # Date 1484421305 -3600 # Node ID dbaad101b1e1bdc5e73685a4b6b6abe2bae7b232 # Parent e449eb119db6b3da437e1210d127b99a57196b98 patch 8.0.0187: cant build with new Ruby version commit https://github.com/vim/vim/commit/fe6ce331d94c24ad745d0bf329ec0a65a5c07cc9 Author: Bram Moolenaar 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) diff --git a/src/if_ruby.c b/src/if_ruby.c --- 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 --- 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,