diff --git a/Android.mk b/Android.mk index c58f18e5c2..db81b0de40 100644 --- a/Android.mk +++ b/Android.mk @@ -108,7 +108,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ext $(LOCAL_PATH)/ext/libzip #Portable native and separate code on android in future is easy you needs add files #by ($(target_arch_ABI),arquitecture (armeabi-v7a , armeabi , x86 , MIPS) ifeq ($(TARGET_ARCH_ABI), armeabi-v7a) -LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM -DARMEABI_V7A -DARMV7 +LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM -DARMEABI_V7A LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ math/fast/fast_matrix_neon.S.neon \ ext/libpng17/arm/arm_init.c \ diff --git a/image/zim_load.cpp b/image/zim_load.cpp index ec6266a4b2..65a29e434d 100644 --- a/image/zim_load.cpp +++ b/image/zim_load.cpp @@ -2,10 +2,6 @@ #include #include -#ifdef USING_QT_UI -#include -#endif - #include "base/logging.h" #include "zlib.h" #include "image/zim_load.h" diff --git a/math/fast/fast_math.c b/math/fast/fast_math.c index 1fa6acd8df..ad68673703 100644 --- a/math/fast/fast_math.c +++ b/math/fast/fast_math.c @@ -3,7 +3,8 @@ #include "fast_matrix.h" void InitFastMath(int enableNEON) { -#if !defined(_M_IX86) && !defined(_M_X64) && defined(ARMEABI_V7A) +// Every architecture has its own define. This needs to be added to. +#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7S__) if (enableNEON) { fast_matrix_mul_4x4 = &fast_matrix_mul_4x4_neon; }