summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:35:49 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:35:49 -0700
commit8a7b707f6f841655498c753701ee38f12ba630cf (patch)
treea639131e433fe2d21e52f944786198bb758a99b9 /utils.h
parente144ec9018cabd1d9904fb6d04382d2cf06ec3dc (diff)
Replace uStrCaseCmp() with direct calls to strcasecmp()
strcasecmp is available in Unix98 and later, so part of the X.Org base platform requirements. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/utils.h b/utils.h
index cbb55f9..a30f782 100644
--- a/utils.h
+++ b/utils.h
@@ -92,13 +92,7 @@ extern void uInternalError(const char *s, ...);
#define uStringEqual(s1,s2) (uStringCompare(s1,s2)==Equal)
#define uStringPrefix(p,s) (strncmp(p,s,strlen(p))==0)
#define uStringCompare(s1,s2) (strcmp(s1,s2))
-#define uStrCaseEqual(s1,s2) (uStrCaseCmp(s1,s2)==0)
-#ifdef HAVE_STRCASECMP
-#define uStrCaseCmp(s1,s2) (strcasecmp(s1,s2))
-#else
-extern int uStrCaseCmp(const char * /* s1 */ ,
- const char * /* s2 */);
-#endif
+#define uStrCaseEqual(s1,s2) (strcasecmp(s1,s2)==0)
/***====================================================================***/