Fix Windows build.

Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its
own names, as usual...
This commit is contained in:
Bastien Montagne 2015-02-18 12:16:31 +01:00
parent 6920735cff
commit 2967253ae4

@ -515,6 +515,11 @@ extern "C" {
/* generic strcmp macros */
#if defined(_MSC_VER)
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
#endif
#define STREQ(a, b) (strcmp(a, b) == 0)
#define STRCASEEQ(a, b) (strcasecmp(a, b) == 0)
#define STREQLEN(a, b, n) (strncmp(a, b, n) == 0)