Skip to content

Commit

Permalink
Fix MSVC build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mal359 committed Jan 7, 2025
1 parent 45b7d55 commit d08c9a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/libzip/lib/znameloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@


#include <string.h>
#ifdef _MSC_VER
#define strcasecmp _stricmp
#else
#include <strings.h>
#endif

#include "wio.h"

Expand Down

0 comments on commit d08c9a2

Please sign in to comment.