diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-11 19:29:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-11 19:29:08 +0400 |
commit | 1eadcf743df76508864b3ab9d3e763b4e1e39119 (patch) | |
tree | 1f58ee8d4e05d2a56a1e8f9c9ced9f9084e6e1a5 /source/blender/blenlib/BLI_array.h | |
parent | 570cdb3b6e84b0f95d73d2154fcaf4ec27ea4dca (diff) |
fix for building with msvc
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-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)) |