diff options
author | Aleix Pol <aleixpol@kde.org> | 2015-09-12 10:28:55 +0200 |
---|---|---|
committer | Aleix Pol Gonzalez <aleixpol@kde.org> | 2015-09-15 13:16:53 +0000 |
commit | 499f9b2abfabacd254e1b23566343ac20322eb48 (patch) | |
tree | 44377205477493d3f2606a10877b38c0bb5a0150 /src | |
parent | cebd5e2755d1a3b6177f9006a0f73c3c2f42a8de (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/qsystemdetection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qsystemdetection.h b/src/corelib/global/qsystemdetection.h index 562427e4b9..d19784163a 100644 --- a/src/corelib/global/qsystemdetection.h +++ b/src/corelib/global/qsystemdetection.h @@ -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__) |