From: William A. Rowe Jr Date: Fri, 19 Aug 2016 16:31:05 +0000 (+0000) Subject: Resolve Netware (and other arch) build error for non-portable isascii() X-Git-Tag: 2.5.0-alpha~1248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94860bb4ff23652fe2bc034b1ebb21d7e9fedf77;p=apache Resolve Netware (and other arch) build error for non-portable isascii() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756934 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/gen_test_char.c b/server/gen_test_char.c index ce5bf6d188..7138a784e5 100644 --- a/server/gen_test_char.c +++ b/server/gen_test_char.c @@ -20,7 +20,11 @@ #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 #define APR_HAVE_STDIO_H 1 #define APR_HAVE_STRING_H 1