diff options
author | DJ Delorie <dj@redhat.com> | 2003-06-22 16:35:53 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-06-22 16:35:53 +0000 |
commit | 70ecf948d924b4fdc84ba07d2f0c0ee141295ef7 (patch) | |
tree | df26823418a051e55f373a8c1c0361afc5a2d565 /libiberty/hex.c | |
parent | 96ec9981bbd23e402401c4e9912014498938fb57 (diff) | |
download | binutils-70ecf948d924b4fdc84ba07d2f0c0ee141295ef7.tar.gz binutils-70ecf948d924b4fdc84ba07d2f0c0ee141295ef7.tar.bz2 binutils-70ecf948d924b4fdc84ba07d2f0c0ee141295ef7.zip |
merge from gcc
Diffstat (limited to 'libiberty/hex.c')
-rw-r--r-- | libiberty/hex.c | 9 |
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] = { |