diff options
-rw-r--r-- | source/blender/blenlib/BLI_array.h | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |