summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-06 08:50:30 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-06 08:50:30 +0000
commit65bbb0e1e7e186c1735b38a51f80b8c55c86eab5 (patch)
treee0b2e1d418d2aef412eb291bdedba68633a811fa /gcc
parent570d41f9ac72730b119295309a176abd21ca128c (diff)
downloadppe42-gcc-65bbb0e1e7e186c1735b38a51f80b8c55c86eab5.tar.gz
ppe42-gcc-65bbb0e1e7e186c1735b38a51f80b8c55c86eab5.zip
* lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
as well. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/lex.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a0821b0a821..744200cb735 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-06 Zack Weinberg <zack@codesourcery.com>
+ Gerald Pfeifer <gerald@pfeifer.com>
+
+ * lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
+ as well.
+
2004-11-02 Bryce McKinlay <mckinlay@redhat.com>
PR java/17265
diff --git a/gcc/java/lex.h b/gcc/java/lex.h
index 37ace45582e..e7dabf535be 100644
--- a/gcc/java/lex.h
+++ b/gcc/java/lex.h
@@ -35,7 +35,11 @@ extern FILE *finput;
/* A Unicode character, as read from the input file */
typedef unsigned short unicode_t;
-#if defined HAVE_ICONV_H && defined HAVE_ICONV
+#ifndef HAVE_ICONV_H
+#undef HAVE_ICONV
+#endif
+
+#if defined HAVE_ICONV
#include <iconv.h>
#endif /* HAVE_ICONV */
OpenPOWER on IntegriCloud