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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-13 15:59:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-13 15:59:07 +0400
commit0f97d53c74b7b1c4a0b3e17a1ee66c04577fdd8a (patch)
treef7cb5b796e5597d51668e9fe5eba1e578d39cf35 /source
parent97bea740f8ea17420a9827204d0e68e5202f34a9 (diff)
add include so alloca() is found on mingw.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_array.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h
index c1b77077a4d..6d34b0d48d5 100644
--- a/source/blender/blenlib/BLI_array.h
+++ b/source/blender/blenlib/BLI_array.h
@@ -203,6 +203,10 @@
# define alloca _alloca
#endif
+#if defined(__MINGW32__)
+# include <malloc.h> /* mingw needs for alloca() */
+#endif
+
#if defined(__GNUC__) || defined(__clang__)
#define BLI_array_alloca(arr, realsize) \
(typeof(arr))alloca(sizeof(*arr) * (realsize))
@@ -219,3 +223,4 @@
alloca(sizeof(*arr) * (realsize)); \
const int _##arr##_count = (realsize)
#endif
+