diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-13 16:09:49 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-13 16:10:35 -0800 |
commit | 0c36017f486f5a71e481f185cdf5a095e7606594 (patch) | |
tree | b7499f1fa4921fac260cafcb37eb0d6b7292eb8b | |
parent | 61bde5017786d60df7cc377a3b9f2e6bb11caeef (diff) |
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |