Skip to content

Commit 2eaed7b

Browse files
fix: guard strcasecmp redefinition in dxflib for MinGW
MinGW's string.h already defines strcasecmp as _stricmp, so the unconditional #define in dl_codes.h causes a -Werror redefinition failure on the CI cross-compilation build. Add a !defined guard.
1 parent 16c5ba6 commit 2eaed7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thirdparty/dxflib/dl_codes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#define strcasecmp(s,t) stricmp(s,t)
4141
#endif
4242

43-
#if defined(_WIN32)
43+
#if defined(_WIN32) && !defined(strcasecmp)
4444
#define strcasecmp(s,t) _stricmp(s,t)
4545
#endif
4646

0 commit comments

Comments
 (0)