aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index 562dca9..c31a57f 100644
--- a/utf8.c
+++ b/utf8.c
@@ -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)) {