Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-02-18 14:16:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-02-18 14:22:58 +0300
commit2967253ae4f080a4968d6542409c608c1b1fcb41 (patch)
tree6cbcd500d8170e73c0d3ee8934e4e05478ddd807 /source/blender/blenlib/BLI_utildefines.h
parent6920735cff6b5b2ab9e4e6d8090fb48bba7d9ba4 (diff)
Fix Windows build.
Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual...
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r--source/blender/blenlib/BLI_utildefines.h5
1 files changed, 5 insertions, 0 deletions
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)