Attempt to fix guardedalloc on OSX

This commit is contained in:
Sergey Sharybin 2014-06-14 01:52:02 +06:00
parent 2b7ff6de06
commit d0573ce905
2 changed files with 3 additions and 1 deletions

@ -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;

@ -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)