From 1eadcf743df76508864b3ab9d3e763b4e1e39119 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Dec 2012 15:29:08 +0000 Subject: fix for building with msvc --- source/blender/blenlib/BLI_array.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_array.h') 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)) -- cgit v1.2.3