From be3054ea68ad53e6301aa8d7de52f67897d98785 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Apr 2011 18:28:11 +0200 Subject: Avoid conflict with compiler builtin definitions of tolower. --- xps/xps_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xps/xps_util.c') diff --git a/xps/xps_util.c b/xps/xps_util.c index 76175d68..d6e226b5 100644 --- a/xps/xps_util.c +++ b/xps/xps_util.c @@ -1,7 +1,7 @@ #include "fitz.h" #include "muxps.h" -static inline int tolower(int c) +static inline int xps_tolower(int c) { if (c >= 'A' && c <= 'Z') return c + 32; @@ -11,13 +11,13 @@ static inline int tolower(int c) int xps_strcasecmp(char *a, char *b) { - while (tolower(*a) == tolower(*b)) + while (xps_tolower(*a) == xps_tolower(*b)) { if (*a++ == 0) return 0; b++; } - return tolower(*a) - tolower(*b); + return xps_tolower(*a) - xps_tolower(*b); } #define SEP(x) ((x)=='/' || (x) == 0) -- cgit v1.2.3