From d0573ce9054e325c0ad2fbb943087e0f8b9e159a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 14 Jun 2014 01:52:02 +0600 Subject: [PATCH] Attempt to fix guardedalloc on OSX --- intern/guardedalloc/intern/mallocn.c | 2 ++ intern/guardedalloc/intern/mallocn_intern.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index b0d252cca14..40f406d0ae2 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -32,6 +32,8 @@ /* to ensure strict conversions */ #include "../../source/blender/blenlib/BLI_strict_flags.h" +#include + #include "mallocn_intern.h" size_t (*MEM_allocN_len)(const void *vmemh) = MEM_lockfree_allocN_len; diff --git a/intern/guardedalloc/intern/mallocn_intern.h b/intern/guardedalloc/intern/mallocn_intern.h index a69bcf3d27b..523d1786b97 100644 --- a/intern/guardedalloc/intern/mallocn_intern.h +++ b/intern/guardedalloc/intern/mallocn_intern.h @@ -100,7 +100,7 @@ #else // Apple's malloc is 16-byte aligned, and does not have malloc.h, so include // stdilb instead. -# include +# include #endif #define IS_POW2(a) (((a) & ((a) - 1)) == 0)