summaryrefslogtreecommitdiffstats
path: root/compat/posix-shims/strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/posix-shims/strings.h')
-rw-r--r--compat/posix-shims/strings.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/posix-shims/strings.h b/compat/posix-shims/strings.h
index c917a66..1ac0519 100644
--- a/compat/posix-shims/strings.h
+++ b/compat/posix-shims/strings.h
@@ -7,3 +7,11 @@
#error No strcasecmp() implementation for this platform is available.
#endif
#endif
+
+#ifndef HAVE_STRNCASECMP
+#ifdef _MSC_VER
+#define strncasecmp _strnicmp
+#else
+#error No strncasecmp() implementation for this platform is available.
+#endif
+#endif