Use Accelerate header; select old vvfabf only if OSX is actually a target (as well as if it's an old version)

This commit is contained in:
Chris Cannam
2014-12-08 10:23:33 +00:00
parent 8c90e3a5e1
commit b3d47e1375

View File

@@ -33,8 +33,7 @@
#endif
#ifdef HAVE_VDSP
#include <vecLib/vDSP.h>
#include <vecLib/vForce.h>
#include <Accelerate/Accelerate.h>
#endif
#include <cstring>
@@ -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);