From 0f97d53c74b7b1c4a0b3e17a1ee66c04577fdd8a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Dec 2012 11:59:07 +0000 Subject: add include so alloca() is found on mingw. --- source/blender/blenlib/BLI_array.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') 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 /* 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 + -- cgit v1.2.3