httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1756934 - /httpd/httpd/trunk/server/gen_test_char.c
Date Fri, 19 Aug 2016 16:31:05 GMT
Author: wrowe
Date: Fri Aug 19 16:31:05 2016
New Revision: 1756934

URL: http://svn.apache.org/viewvc?rev=1756934&view=rev
Log:
Resolve Netware (and other arch) build error for non-portable isascii()

Modified:
    httpd/httpd/trunk/server/gen_test_char.c

Modified: httpd/httpd/trunk/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=1756934&r1=1756933&r2=1756934&view=diff
==============================================================================
--- httpd/httpd/trunk/server/gen_test_char.c (original)
+++ httpd/httpd/trunk/server/gen_test_char.c Fri Aug 19 16:31:05 2016
@@ -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 <ctype.h>
 #define APR_HAVE_STDIO_H 1
 #define APR_HAVE_STRING_H 1



Mime
View raw message