diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-13 19:30:16 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-13 19:41:53 +0400 |
commit | ba350d3020b312f33ac8b52f92d641c384ad2158 (patch) | |
tree | bec5e192e44877ae224e80c16400453e5494a008 /source | |
parent | 4875a665cc11eda3c10c2d7f474fc01b32a968c5 (diff) |
Add alloca include in compiler compatibility. Helps with MinGW32
compilation.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_compiler_compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_compiler_compat.h b/source/blender/blenlib/BLI_compiler_compat.h index 60a7d8dbd02..eb9887f015b 100644 --- a/source/blender/blenlib/BLI_compiler_compat.h +++ b/source/blender/blenlib/BLI_compiler_compat.h @@ -32,4 +32,9 @@ # define alloca _alloca #endif +/* alloca is defined here for MinGW32 */ +#ifdef __MINGW32__ +#include <malloc.h> +#endif + #endif /* __BLI_COMPILER_COMPAT_H__ */ |