From 2967253ae4f080a4968d6542409c608c1b1fcb41 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 18 Feb 2015 12:16:31 +0100 Subject: [PATCH] Fix Windows build. Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual... --- source/blender/blenlib/BLI_utildefines.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 079352fc061..de9133261fc 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -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)