diff options
author | Benoit Daloze <eregontp@gmail.com> | 2021-04-29 14:31:05 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2021-05-04 14:56:55 +0200 |
commit | 68d6bd0873557c12bec6f8e0f8db622f1499d8a7 (patch) | |
tree | dd50dae6ebbf714d19e3db7272f0d9b6af86223e /ruby.c | |
parent | 229cbeba8c928dc6ee5eb21951e00c43a6e5225c (diff) |
Fix trivial -Wundef warnings
* See [Feature #17752]
Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4428
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1826,7 +1826,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) opt->script_name = rb_str_new_cstr(opt->script); opt->script = RSTRING_PTR(opt->script_name); -#if _WIN32 +#ifdef _WIN32 translit_char_bin(RSTRING_PTR(opt->script_name), '\\', '/'); #elif defined DOSISH translit_char(RSTRING_PTR(opt->script_name), '\\', '/'); |