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
Notes: blender-bot 2023-02-14 09:29:36 +01:00
Referenced by issue #43806, Knife Project Crashes Blender
Referenced by issue #43745, Compositing large images crashes blender
Referenced by issue #43684, File Browser is unusable on Windows Machines
1 changed files with 5 additions and 0 deletions

View File

@ -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)