Skip to content

Commit 8d077fe

Browse files
committed
fix(windows): add strcasecmp compatibility for MSVC builds
Windows MSVC uses _stricmp instead of POSIX strcasecmp. Add define to utility.c to map strcasecmp to stricmp when building with MSVC, fixing linker errors for ensure_output_extension. This matches the same pattern used in ccx_encoders_helpers.c.
1 parent 14d290b commit 8d077fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib_ccx/utility.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include <stdio.h>
22
#include <signal.h>
33
#include <string.h>
4+
5+
#ifdef _MSC_VER
6+
#define strcasecmp stricmp
7+
#endif
8+
49
#include "lib_ccx.h"
510
#include "ccx_common_option.h"
611
#include "activity.h"

0 commit comments

Comments
 (0)