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);