OS/X build fixes

This commit is contained in:
Chris Cannam
2012-09-09 18:11:04 +01:00
parent 898a41de9a
commit 16a68c617d
3 changed files with 5 additions and 3 deletions

View File

@@ -77,7 +77,9 @@ T *allocate(size_t count)
#ifdef __MSVC__
ptr = _aligned_malloc(count * sizeof(T), alignment);
#else /* !__MSVC__ */
#ifndef MALLOC_IS_ALIGNED
#warning "No aligned malloc available or defined"
#endif
// Note that malloc always aligns to 16 byte boundaries on OS/X
ptr = malloc(count * sizeof(T));
#endif /* !__MSVC__ */