From 0c36017f486f5a71e481f185cdf5a095e7606594 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 13 Nov 2024 16:09:49 -0800 Subject: Use _strnicmp() instead of strncasecmp() on Windows Fixes: 61bde50 ("Assume target platforms have strncasecmp now") Signed-off-by: Alan Coopersmith Part-of: --- handle.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 #include -#include + +#if defined(_MSC_VER) +#define strncasecmp _strnicmp +#else +#include /* for strncasecmp in POSIX/SUS */ +#endif static XModifierKeymap *map = NULL; -- cgit v1.2.3