diff options
Diffstat (limited to 'gcc/java/jv-scan.c')
-rw-r--r-- | gcc/java/jv-scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jv-scan.c b/gcc/java/jv-scan.c index 90e16e7..e1bc572 100644 --- a/gcc/java/jv-scan.c +++ b/gcc/java/jv-scan.c @@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */ #include <locale.h> #endif -#ifdef HAVE_NL_LANGINFO +#ifdef HAVE_LANGINFO_CODESET #include <langinfo.h> #endif @@ -205,7 +205,7 @@ main (int argc, char **argv) /* There's no point in trying to find the current encoding unless we are going to do something intelligent with it -- hence the test for iconv. */ -#if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_NL_LANGINFO) +#if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_LANGINFO_CODESET) setlocale (LC_CTYPE, ""); if (encoding == NULL) encoding = nl_langinfo (CODESET); |