summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-08 02:12:49 +0000
committerJim Meyering <jim@meyering.net>1992-12-08 02:12:49 +0000
commitdcded75afccc14f6efdd9e96c6450b65ae46634b (patch)
tree6e30c38f8f05aa068478a8a6b8fd8d0929528203 /src/install.c
parenta1507ef1dac3b6431c22a26d26f8674ef1b39bd4 (diff)
downloadcoreutils-dcded75afccc14f6efdd9e96c6450b65ae46634b.tar.xz
(isnumber): Define ISDIGIT and use it instead of isdigit.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index c4d8c9de4..f0bbbbd92 100644
--- a/src/install.c
+++ b/src/install.c
@@ -61,6 +61,12 @@
#include "system.h"
#include "modechange.h"
+#ifndef isascii
+#define isascii(c) 1
+#endif
+
+#define ISDIGIT(c) (isascii (c) && isdigit (c))
+
#ifdef _POSIX_VERSION
#include <sys/wait.h>
#else
@@ -476,7 +482,7 @@ isnumber (str)
if (*str == 0)
return 0;
for (; *str; str++)
- if (!isdigit (*str))
+ if (!ISDIGIT (*str))
return 0;
return 1;
}