From 38daeba66b5d2a9f6fc4eda795b6c9b8c77a7b54 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 20 Dec 2006 07:17:18 +0000 Subject: - Changed the script source from unsigned char* to const char*. - Updated plugins Makefile. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9532 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/cbasetypes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/cbasetypes.h') 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_ */ -- cgit v1.2.3-60-g2f50