aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/setup_once.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 1c4d6c99c..827a6901e 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -122,7 +122,6 @@
*/
#define ISSPACE(x) (isspace((int) ((unsigned char)x)))
-#define ISBLANK(x) (isblank((int) ((unsigned char)x)))
#define ISDIGIT(x) (isdigit((int) ((unsigned char)x)))
#define ISALNUM(x) (isalnum((int) ((unsigned char)x)))
#define ISXDIGIT(x) (isxdigit((int) ((unsigned char)x)))
@@ -132,6 +131,13 @@
#define ISUPPER(x) (isupper((int) ((unsigned char)x)))
#define ISLOWER(x) (islower((int) ((unsigned char)x)))
+#ifdef HAVE_ISBLANK
+#define ISBLANK(x) (isblank((int) ((unsigned char)x)))
+#else
+#define ISBLANK(x) (int)((((unsigned char)x) == ' ') || \
+ (((unsigned char)x) == '\t'))
+#endif
+
/*
* Typedef to 'int' if sig_atomic_t is not an available 'typedefed' type.