Skip to content

Commit c0e286a

Browse files
committed
Merge branch 'ss/msvc-strcasecmp'
MSVC update. * ss/msvc-strcasecmp: msvc: directly use MS version (_stricmp) of strcasecmp
2 parents 6233704 + d27525e commit c0e286a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

compat/msvc.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@
1010
#define inline __inline
1111
#define __inline__ __inline
1212
#define __attribute__(x)
13+
#define strcasecmp _stricmp
1314
#define strncasecmp _strnicmp
1415
#define ftruncate _chsize
1516
#define strtoull _strtoui64
1617
#define strtoll _strtoi64
1718

18-
static __inline int strcasecmp (const char *s1, const char *s2)
19-
{
20-
int size1 = strlen(s1);
21-
int sisz2 = strlen(s2);
22-
return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1);
23-
}
24-
2519
#undef ERROR
2620

2721
#include "compat/mingw.h"

0 commit comments

Comments
 (0)