diff options
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 2 | ||||
-rw-r--r-- | intern/guardedalloc/intern/mallocn_intern.h | 2 |
2 files changed, 3 insertions, 1 deletions
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 <assert.h> + #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 <cstdlib> +# include <stdlib.h> #endif #define IS_POW2(a) (((a) & ((a) - 1)) == 0) |