summaryrefslogtreecommitdiff
path: root/xps/xps_util.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-12 18:28:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-12 18:28:11 +0200
commitbe3054ea68ad53e6301aa8d7de52f67897d98785 (patch)
tree5104a8a504c2992a778fda2b98ff034211122f22 /xps/xps_util.c
parenta19a016b48213caedbf49278f26c9055cdbfc2fc (diff)
downloadmupdf-be3054ea68ad53e6301aa8d7de52f67897d98785.tar.xz
Avoid conflict with compiler builtin definitions of tolower.
Diffstat (limited to 'xps/xps_util.c')
-rw-r--r--xps/xps_util.c6
1 files changed, 3 insertions, 3 deletions
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)