diff options
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -52,7 +52,10 @@ char *getenv(); #endif -#if defined DISABLE_RUBYGEMS && DISABLE_RUBYGEMS +#ifndef DISABLE_RUBYGEMS +# define DISABLE_RUBYGEMS 0 +#endif +#if DISABLE_RUBYGEMS #define DEFAULT_RUBYGEMS_ENABLED "disabled" #else #define DEFAULT_RUBYGEMS_ENABLED "enabled" @@ -114,7 +117,7 @@ cmdline_options_init(struct cmdline_options *opt) opt->src.enc.index = src_encoding_index; opt->ext.enc.index = -1; opt->intern.enc.index = -1; -#if defined DISABLE_RUBYGEMS && DISABLE_RUBYGEMS +#if DISABLE_RUBYGEMS opt->disable |= DISABLE_BIT(gems); #endif return opt; @@ -1446,11 +1449,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt) } } if (!(opt->disable & DISABLE_BIT(gems))) { -#if defined DISABLE_RUBYGEMS && DISABLE_RUBYGEMS - rb_require("rubygems"); -#else rb_define_module("Gem"); -#endif } ruby_init_prelude(); ruby_set_argv(argc, argv); |