Enabled ruby_sysinit again after MSVC2017 build crashed without this.

This commit is contained in:
Matthias Köfferlein 2018-09-11 00:07:33 +02:00
parent dcfe2977a8
commit 1c68b5472c
1 changed files with 2 additions and 4 deletions

View File

@ -1778,14 +1778,12 @@ RubyInterpreter::initialize (int &main_argc, char **main_argv, int (*main_func)
argv[1] = argv1;
argv[2] = argv2;
#if 0
// According to the comments in ruby.c, this should not be required any longer:
#if HAVE_RUBY_VERSION_CODE>=10900
// Make sure we call ruby_sysinit because otherwise the program will crash
// Make sure we call ruby_sysinit because otherwise the program will crash (this
// has been observed on Windows under MSVC 2017 with Ruby 2.5.1 for example)
char **argvp = argv;
int argcp = argc;
ruby_sysinit (&argcp, &argvp);
#endif
#endif
{