diff options
author | Jim Meyering <jim@meyering.net> | 1993-11-20 17:00:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-11-20 17:00:37 +0000 |
commit | 22ba8f3323f35f3b8239554ae52684dd15179d29 (patch) | |
tree | a6a3a572d9a32c412884bcc7659ead5011655162 /src/expr.c | |
parent | 700f99c87338e8a29d585194a36775dd7915a24f (diff) | |
download | coreutils-22ba8f3323f35f3b8239554ae52684dd15179d29.tar.xz |
merge with 1.9.1a
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/expr.c b/src/expr.c index 26c4ffa0d..e5549140f 100644 --- a/src/expr.c +++ b/src/expr.c @@ -48,12 +48,13 @@ #include "version.h" #include "long-options.h" -#if !defined (isascii) || defined (STDC_HEADERS) -#undef isascii -#define isascii(c) 1 +#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) +#define ISASCII(c) 1 +#else +#define ISASCII(c) isascii(c) #endif -#define ISDIGIT(c) (isascii (c) && isdigit (c)) +#define ISDIGIT(c) (ISASCII (c) && isdigit (c)) #define NEW(type) ((type *) xmalloc (sizeof (type))) #define OLD(x) free ((char *) x) |