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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-11 19:29:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-11 19:29:08 +0400
commit1eadcf743df76508864b3ab9d3e763b4e1e39119 (patch)
tree1f58ee8d4e05d2a56a1e8f9c9ced9f9084e6e1a5 /source/blender/blenlib/BLI_array.h
parent570cdb3b6e84b0f95d73d2154fcaf4ec27ea4dca (diff)
fix for building with msvc
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-rw-r--r--source/blender/blenlib/BLI_array.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h
index 975476a669b..c1b77077a4d 100644
--- a/source/blender/blenlib/BLI_array.h
+++ b/source/blender/blenlib/BLI_array.h
@@ -199,6 +199,10 @@
/* alloca */
+#ifdef _MSC_VER
+# define alloca _alloca
+#endif
+
#if defined(__GNUC__) || defined(__clang__)
#define BLI_array_alloca(arr, realsize) \
(typeof(arr))alloca(sizeof(*arr) * (realsize))