Browse Source

Better check for Android NEON support in WebP.

Lasse Öörni 8 years ago
parent
commit
5fb53f9bd8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/ThirdParty/WebP/src/dsp/dsp.h

+ 3 - 3
Source/ThirdParty/WebP/src/dsp/dsp.h

@@ -73,9 +73,9 @@ extern "C" {
 #define WEBP_USE_AVX2
 #define WEBP_USE_AVX2
 #endif
 #endif
 
 
-#if defined(__ANDROID__) && defined(__ARM_ARCH_7A__)
-// Urho3D: disable Android NEON instruction set for now, as it might not be in use, resulting in compile error
-// #define WEBP_ANDROID_NEON  // Android targets that might support NEON
+// Urho3D: additional test for actually having NEON support enabled
+#if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) && defined(__ARM_NEON)
+    #define WEBP_ANDROID_NEON  // Android targets that might support NEON
 #endif
 #endif
 
 
 // The intrinsics currently cause compiler errors with arm-nacl-gcc and the
 // The intrinsics currently cause compiler errors with arm-nacl-gcc and the