summaryrefslogtreecommitdiff
path: root/libiberty/hex.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-06-22 16:35:53 +0000
committerDJ Delorie <dj@redhat.com>2003-06-22 16:35:53 +0000
commit70ecf948d924b4fdc84ba07d2f0c0ee141295ef7 (patch)
treedf26823418a051e55f373a8c1c0361afc5a2d565 /libiberty/hex.c
parent96ec9981bbd23e402401c4e9912014498938fb57 (diff)
downloadbinutils-gdb-70ecf948d924b4fdc84ba07d2f0c0ee141295ef7.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/hex.c')
-rw-r--r--libiberty/hex.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libiberty/hex.c b/libiberty/hex.c
index f425509be75..e4c5dfa2f1d 100644
--- a/libiberty/hex.c
+++ b/libiberty/hex.c
@@ -19,6 +19,11 @@ Boston, MA 02111-1307, USA. */
#include <stdio.h> /* for EOF */
#include "libiberty.h"
+#include "safe-ctype.h" /* for HOST_CHARSET_ASCII */
+
+#if EOF != -1
+ #error "hex.c requires EOF == -1"
+#endif
/*
@@ -62,9 +67,7 @@ systems.
/* Are we ASCII? */
-#if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
- && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21 \
- && EOF == -1
+#if HOST_CHARSET == HOST_CHARSET_ASCII
const unsigned char _hex_value[_hex_array_size] =
{