summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-13 16:09:49 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-13 16:10:35 -0800
commit0c36017f486f5a71e481f185cdf5a095e7606594 (patch)
treeb7499f1fa4921fac260cafcb37eb0d6b7292eb8b
parent61bde5017786d60df7cc377a3b9f2e6bb11caeef (diff)
Use _strnicmp() instead of strncasecmp() on WindowsHEADmaster
Fixes: 61bde50 ("Assume target platforms have strncasecmp now") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xmodmap/-/merge_requests/7>
-rw-r--r--handle.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index cee561f..6ac8c6c 100644
--- a/handle.c
+++ b/handle.c
@@ -38,7 +38,12 @@ from The Open Group.
#include "wq.h"
#include <stdlib.h>
#include <stdint.h>
-#include <strings.h>
+
+#if defined(_MSC_VER)
+#define strncasecmp _strnicmp
+#else
+#include <strings.h> /* for strncasecmp in POSIX/SUS */
+#endif
static XModifierKeymap *map = NULL;