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