summaryrefslogtreecommitdiff
path: root/src/common/cbasetypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r--src/common/cbasetypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index ad2b7c4ed..3ef6dfd2f 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -286,4 +286,10 @@ typedef char bool;
#endif
#endif /* ! defined(Assert) */
+//////////////////////////////////////////////////////////////////////////
+// Has to be unsigned to avoid problems in some systems
+#define TOLOWER(c) ((char)tolower((unsigned char)(c)))
+#define ISSPACE(c) ((char)isspace((unsigned char)(c)))
+#define ISALPHA(c) ((char)isalpha((unsigned char)(c)))
+
#endif /* _CBASETYPES_H_ */