diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-13 15:59:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-13 15:59:07 +0400 |
commit | 0f97d53c74b7b1c4a0b3e17a1ee66c04577fdd8a (patch) | |
tree | f7cb5b796e5597d51668e9fe5eba1e578d39cf35 /source/blender/blenlib | |
parent | 97bea740f8ea17420a9827204d0e68e5202f34a9 (diff) |
add include so alloca() is found on mingw.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_array.h | 5 |
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 + |