From aef181c3edb683f1de03459090e7fc17582245d4 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 10 Jul 2008 11:09:26 +0000 Subject: [PATCH] ... --- src/sysutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sysutils.cpp b/src/sysutils.cpp index 219d8ce..332723c 100644 --- a/src/sysutils.cpp +++ b/src/sysutils.cpp @@ -108,7 +108,9 @@ float *allocFloat(float *ptr, int count) if (ptr) free((void *)ptr); void *allocated; #ifndef _WIN32 +#ifndef __APPLE__ if (!posix_memalign(&allocated, 16, count * sizeof(float))) +#endif #endif allocated = malloc(count * sizeof(float)); for (int i = 0; i < count; ++i) ((float *)allocated)[i] = 0.f;