Skip to content

Commit cac264f

Browse files
krisheanbagder
authored andcommitted
Enable building with msvc
strncasecmp is not available in msvc, add a define to map it to _strnicmp
1 parent c18a95f commit cac264f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

trurl.c

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131

3232
#include "version.h"
3333

34+
#ifdef _MSC_VER
35+
#define strncasecmp _strnicmp
36+
#endif
37+
3438
#define OUTPUT_URL 0 /* default */
3539
#define OUTPUT_SCHEME 1
3640
#define OUTPUT_USER 2

0 commit comments

Comments
 (0)