diff options
author | David Reid <dreid@apache.org> | 2000-12-03 15:48:41 +0000 |
---|---|---|
committer | David Reid <dreid@apache.org> | 2000-12-03 15:48:41 +0000 |
commit | 80891113af3acbd51cff5d8c7809a1fa9473f438 (patch) | |
tree | 7ed05a78285b57f77578f9bc280cdb3703b4e5b5 /include | |
parent | 064f5e36af5453d102261f9b695d49275812966f (diff) | |
download | apr-80891113af3acbd51cff5d8c7809a1fa9473f438.tar.gz |
Try to deal with isascii in a better manner. As we include ctype.h if
it's available we can just check if it's been defined and so dispense
with the check in configure.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/apr_lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/apr_lib.h b/include/apr_lib.h index bdc3b5291..90b684d06 100644 --- a/include/apr_lib.h +++ b/include/apr_lib.h @@ -113,7 +113,11 @@ APR_DECLARE(const char *) apr_filename_of_pathname(const char *pathname); #define apr_isdigit(c) (isdigit(((unsigned char)(c)))) #define apr_isgraph(c) (isgraph(((unsigned char)(c)))) #define apr_islower(c) (islower(((unsigned char)(c)))) +#ifdef isascii #define apr_isascii(c) (isascii(((unsigned char)(c)))) +#else +#define apr_isascii(c) (((c) & ~0x7f)==0) +#endif #define apr_isprint(c) (isprint(((unsigned char)(c)))) #define apr_ispunct(c) (ispunct(((unsigned char)(c)))) #define apr_isspace(c) (isspace(((unsigned char)(c)))) @@ -122,10 +126,6 @@ APR_DECLARE(const char *) apr_filename_of_pathname(const char *pathname); #define apr_tolower(c) (tolower(((unsigned char)(c)))) #define apr_toupper(c) (toupper(((unsigned char)(c)))) -#if BEOS && __POWER_PC__ -#define isascii(c) (((c) & ~0x7f)==0) -#endif - /* * Small utility macros to make things easier to read. Not usually a * goal, to be sure.. |