aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-11-06 08:50:30 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2004-11-06 08:50:30 +0000
commitd08bf5fa33ca8d704846d234a59a13168f97d5a5 (patch)
treee0b2e1d418d2aef412eb291bdedba68633a811fa /gcc/java/lex.h
parentc37780f5720b6ae1a9368823b1c72e3d14ac39bf (diff)
downloadgcc-d08bf5fa33ca8d704846d234a59a13168f97d5a5.zip
gcc-d08bf5fa33ca8d704846d234a59a13168f97d5a5.tar.gz
gcc-d08bf5fa33ca8d704846d234a59a13168f97d5a5.tar.bz2
lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H as well.
* lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H as well. Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com> From-SVN: r90168
Diffstat (limited to 'gcc/java/lex.h')
-rw-r--r--gcc/java/lex.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/lex.h b/gcc/java/lex.h
index 37ace45..e7dabf5 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 */