summaryrefslogtreecommitdiffstats
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
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 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