mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Attempt to fix guardedalloc on OSX
This commit is contained in:
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue