diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-14 20:12:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-14 20:12:01 +0100 |
commit | fe6ce331d94c24ad745d0bf329ec0a65a5c07cc9 (patch) | |
tree | 72878744f4636b564f2a18ad2df791a56384e142 /src/if_ruby.c | |
parent | 5869cf060e60cc09e71b2b3bd85f0576ec78f9f5 (diff) | |
download | vim-git-fe6ce331d94c24ad745d0bf329ec0a65a5c07cc9.tar.gz |
patch 8.0.0187: cant build with new Ruby versionv8.0.0187
Problem: Building with a new Ruby version fails.
Solution: Use ruby_sysinit() instead of NtInitialize(). (Tomas Volf,
closes #1382)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |