From d08c9a2fe967d30cd7e88c74773ac8c5ae84a634 Mon Sep 17 00:00:00 2001 From: mal359 <149554260+mal359@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:09:30 -0500 Subject: [PATCH] Fix MSVC build strcasecmp has a Watcom-native implementation and is portable sans Windows. This replaces a prior stricmp call, which is deprecated in the Watcom C library. --- contrib/libzip/lib/znameloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/libzip/lib/znameloc.c b/contrib/libzip/lib/znameloc.c index 9f08762be1..ca47397336 100644 --- a/contrib/libzip/lib/znameloc.c +++ b/contrib/libzip/lib/znameloc.c @@ -36,7 +36,11 @@ #include +#ifdef _MSC_VER +#define strcasecmp _stricmp +#else #include +#endif #include "wio.h"