diff --git a/main.c b/main.c index d1f275aa99..e438b9c7b8 100644 --- a/main.c +++ b/main.c @@ -12,7 +12,7 @@ #undef RUBY_EXPORT #include "ruby/ruby.h" -#ifdef LOCALE_H +#ifdef HAVE_LOCALE_H #include #endif @@ -25,7 +25,7 @@ main(int argc, char **argv, char **envp) extern void ruby_set_debug_option(const char *); ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif -#ifdef LOCALE_H +#ifdef HAVE_LOCALE_H setlocale(LC_CTYPE, ""); #endif