diff --git a/src/dsp/dsp.h b/src/dsp/dsp.h index 73066f6d..0db4f04f 100644 --- a/src/dsp/dsp.h +++ b/src/dsp/dsp.h @@ -68,7 +68,10 @@ extern "C" { #define WEBP_ANDROID_NEON // Android targets that might support NEON #endif -#if defined(__ARM_NEON__) || defined(WEBP_ANDROID_NEON) || defined(__aarch64__) +// The intrinsics currently cause compiler errors with arm-nacl-gcc and the +// inline assembly would need to be modified for use with Native Client. +#if (defined(__ARM_NEON__) || defined(WEBP_ANDROID_NEON) || \ + defined(__aarch64__)) && !defined(__native_client__) #define WEBP_USE_NEON #endif