Use the proper macro to detect the compiler as part of the NDK

The correct macros can be easily checked by running:
.../arm-linux-androideabi-gcc -E -dM - < /dev/null | grep -i ANDR
Otherwise we're just relying on the user to set up explicitly the
toolchain to target Android

Change-Id: I7b68521f43031c13da99b07626360d0702bff4ca
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
Aleix Pol 2015-09-12 10:28:55 +02:00 committed by Aleix Pol Gonzalez
parent cebd5e2755
commit 499f9b2abf

View File

@ -94,7 +94,7 @@
# else
# define Q_OS_DARWIN32
# endif
#elif defined(ANDROID)
#elif defined(__ANDROID__) || defined(ANDROID)
# define Q_OS_ANDROID
# define Q_OS_LINUX
#elif defined(__CYGWIN__)