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/jv-scan.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/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); |