summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;