summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-09 11:28:24 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-09 11:29:25 -0800
commita9c3d35a1f74de1681aeb7cdd66dce7bf186c666 (patch)
tree69cbaaabb785e662ad3a15aef4132e021a029f94
parent3f354d20f5bc0276e27faa7fb5f6356319aa32c3 (diff)
Use _stricmp()/_strnicmp() instead of strcasecmp()/strncasecmp() on WindowsHEADmaster
Fixes: 0b4873c ("Assume target platforms have strcasecmp, strncasecmp, & strdup now") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/merge_requests/25>
-rw-r--r--utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index a3b83b0..413d42f 100644
--- a/utils.h
+++ b/utils.h
@@ -137,6 +137,11 @@ uInformation(const char * /* s */ , ...
#include <strings.h>
#include <string.h>
+#if defined(_MSC_VER)
+#define strcasecmp _stricmp
+#define strncasecmp _strnicmp
+#endif
+
#define NullString ((char *)NULL)
#define uStringText(s) ((s)==NullString?"<NullString>":(s))