diff options
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-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 + |