diff options
author | Dan Albert <danalbert@google.com> | 2017-07-26 14:27:43 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2017-07-26 14:27:43 -0700 |
commit | f66fa495a883ee2f6df955e06f7b364907c6fcd9 (patch) | |
tree | 3f6f1dedf0cf95185c79dceb3bc4b259417ca047 /libc/include/android/api-level.h | |
parent | 93068895091ee516c55a7873a4056145a7da3644 (diff) |
Add __ANDROID_NDK__ to identify using the NDK.
I've added some things like __ANDROID_MAJOR__ to an ndk-version.h, but
that is only in the NDK itself and so doesn't help the platform. Add
__ANDROID_NDK__ to identify that you're building for the NDK and not
the platform.
Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/407
Change-Id: I2d1f1c28e3764e4e658cf675b290b7a17253ee33
Diffstat (limited to 'libc/include/android/api-level.h')
-rw-r--r-- | libc/include/android/api-level.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/include/android/api-level.h b/libc/include/android/api-level.h index c83c18d7f..7e3aa99b5 100644 --- a/libc/include/android/api-level.h +++ b/libc/include/android/api-level.h @@ -41,6 +41,8 @@ #ifndef __ANDROID_API__ #define __ANDROID_API__ __ANDROID_API_FUTURE__ +#else +#define __ANDROID_NDK__ 1 #endif #define __ANDROID_API_G__ 9 |