From 70ecf948d924b4fdc84ba07d2f0c0ee141295ef7 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sun, 22 Jun 2003 16:35:53 +0000 Subject: merge from gcc --- libiberty/hex.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libiberty/hex.c') diff --git a/libiberty/hex.c b/libiberty/hex.c index f425509..e4c5dfa 100644 --- a/libiberty/hex.c +++ b/libiberty/hex.c @@ -19,6 +19,11 @@ Boston, MA 02111-1307, USA. */ #include /* 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] = { -- cgit v1.1