]> granicus.if.org Git - apache/commitdiff
Resolve Netware (and other arch) build error for non-portable isascii()
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Aug 2016 16:31:05 +0000 (16:31 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Aug 2016 16:31:05 +0000 (16:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756934 13f79535-47bb-0310-9956-ffa450edef68

server/gen_test_char.c

index ce5bf6d188c6bfd13a400fff573e0a1b604d975e..7138a784e58a2e3caf093a38e6a070567b761b13 100644 (file)
 #define apr_isalpha(c) (isalpha(((unsigned char)(c))))
 #define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
 #define apr_isprint(c) (isprint(((unsigned char)(c))))
+#ifdef isascii
 #define apr_isascii(c) (isascii(((unsigned char)(c))))
+#else
+#define apr_isascii(c) (((c) & ~0x7f)==0)
+#endif
 #include <ctype.h>
 #define APR_HAVE_STDIO_H 1
 #define APR_HAVE_STRING_H 1