From b3d47e13759c6c5b49a5f474b28884c9b086054b Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Mon, 8 Dec 2014 10:23:33 +0000 Subject: [PATCH] Use Accelerate header; select old vvfabf only if OSX is actually a target (as well as if it's an old version) --- src/system/VectorOps.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/system/VectorOps.h b/src/system/VectorOps.h index a1cba4d..1a6f5a6 100644 --- a/src/system/VectorOps.h +++ b/src/system/VectorOps.h @@ -33,8 +33,7 @@ #endif #ifdef HAVE_VDSP -#include -#include +#include #endif #include @@ -674,7 +673,7 @@ inline void v_abs(float *const R__ dst, const int count) { float tmp[count]; -#if (MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070) +#if (defined(MACOSX_DEPLOYMENT_TARGET) && MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070) vvfabf(tmp, dst, &count); #else vvfabsf(tmp, dst, &count);