mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 19:29:08 +08:00
Correctly detect Android with ndk_build
This commit is contained in:
parent
ae01c05e18
commit
0cbd5ae3cb
@ -213,7 +213,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// \internal EIGEN_OS_ANDROID set to 1 if the OS is Android
|
/// \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
|
#define EIGEN_OS_ANDROID 1
|
||||||
#else
|
#else
|
||||||
#define EIGEN_OS_ANDROID 0
|
#define EIGEN_OS_ANDROID 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user