Correctly detect Android with ndk_build

This commit is contained in:
Benoit Jacob 2015-03-31 11:17:21 -04:00
parent ae01c05e18
commit 0cbd5ae3cb

View File

@ -213,7 +213,8 @@
#endif
/// \internal EIGEN_OS_ANDROID set to 1 if the OS is Android
#if defined(__ANDROID__)
// note: ANDROID is defined when using ndk_build, __ANDROID__ is defined when using a standalone toolchain.
#if defined(__ANDROID__) || defined(ANDROID)
#define EIGEN_OS_ANDROID 1
#else
#define EIGEN_OS_ANDROID 0