[Bf-blender-cvs] [ba350d3] master: Add alloca include in compiler compatibility. Helps with MinGW32 compilation.

Antony Riakiotakis noreply at git.blender.org
Tue May 13 17:54:58 CEST 2014


Commit: ba350d3020b312f33ac8b52f92d641c384ad2158
Author: Antony Riakiotakis
Date:   Tue May 13 18:30:16 2014 +0300
https://developer.blender.org/rBba350d3020b312f33ac8b52f92d641c384ad2158

Add alloca include in compiler compatibility. Helps with MinGW32
compilation.

===================================================================

M	source/blender/blenlib/BLI_compiler_compat.h

===================================================================

diff --git a/source/blender/blenlib/BLI_compiler_compat.h b/source/blender/blenlib/BLI_compiler_compat.h
index 60a7d8d..eb9887f 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__ */




More information about the Bf-blender-cvs mailing list