diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-09-19 07:29:17 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2013-09-19 12:29:17 +1000 |
commit | 14f066bc24c7c5f8ca5559db321ef722d673c076 (patch) | |
tree | 4c6dae396cb2cd69f4469a1bf0b2ddb0b8982a7c /utf8.c | |
parent | dcb268ae2e41a2f87e418b8d5285623977b2fbb4 (diff) | |
download | jimtcl-14f066bc24c7c5f8ca5559db321ef722d673c076.zip jimtcl-14f066bc24c7c5f8ca5559db321ef722d673c076.tar.gz jimtcl-14f066bc24c7c5f8ca5559db321ef722d673c076.tar.bz2 |
Build on platforms without isascii
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -178,6 +178,11 @@ static int utf8_map_case(const struct casemap *mapping, int num, int ch) return ch; } +/* Some platforms don't have isascii */ +#ifndef isascii +#define isascii(C) (!((C) & ~0x7f)) +#endif + int utf8_upper(int ch) { if (isascii(ch)) { |