about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/ctype.h1
-rw-r--r--src/ctype/isascii.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h
index cd2e0169..7936536f 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -64,6 +64,7 @@ int   isascii(int);
 int   toascii(int);
 #define _tolower(a) ((a)|0x20)
 #define _toupper(a) ((a)&0x5f)
+#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128)
 
 #endif
 
diff --git a/src/ctype/isascii.c b/src/ctype/isascii.c
index 3af0a10d..54ad3bf0 100644
--- a/src/ctype/isascii.c
+++ b/src/ctype/isascii.c
@@ -1,4 +1,5 @@
 #include <ctype.h>
+#undef isascii
 
 int isascii(int c)
 {