diff options
author | Adrian Bunk <bunk@fs.tum.de> | 2003-02-03 13:57:15 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2003-02-03 13:57:15 +0000 |
commit | 7d503466fb85d355e25d5b1aa06ad8f9818a07fa (patch) | |
tree | 61a29211116a7a45cf1fe7c1aeb6ec18ea1e430d /gcc/java/jcf-parse.c | |
parent | 847e8c74ac442743a3066f23c93e529b2b92043c (diff) | |
download | gcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.zip gcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.tar.gz gcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.tar.bz2 |
Fix for java/4269:
2003-01-31 Adrian Bunk <bunk@fs.tum.de>
Fix for java/4269:
* jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO
to fix bootstrap on sparc-unknown-netbsdelf1.5.
* jcf-parse.c: Likewise.
From-SVN: r62310
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r-- | gcc/java/jcf-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 20dc3ff..ac4757c 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -47,7 +47,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include <locale.h> #endif -#ifdef HAVE_NL_LANGINFO +#ifdef HAVE_LANGINFO_CODESET #include <langinfo.h> #endif @@ -802,7 +802,7 @@ parse_source_file_1 (tree file, FILE *finput) /* 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 (current_encoding == NULL) current_encoding = nl_langinfo (CODESET); |