forked from bartvdbraak/blender
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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user