From 16527d165de55f2727f55b752b30d44a7e61e927 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 06:23:18 +0200 Subject: Merging upstream version 2.1.148. Signed-off-by: Daniel Baumann --- compat/posix-shims/strings.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compat/posix-shims/strings.h') 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 -- cgit v1.2.3