Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add __ANDROID_NDK__ to identify using the NDK.
Browse files Browse the repository at this point in the history
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: android/ndk#407
Change-Id: I2d1f1c28e3764e4e658cf675b290b7a17253ee33
  • Loading branch information
DanAlbert committed Jul 26, 2017
1 parent 9306889 commit f66fa49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/include/android/api-level.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

#ifndef __ANDROID_API__
#define __ANDROID_API__ __ANDROID_API_FUTURE__
#else
#define __ANDROID_NDK__ 1
#endif

#define __ANDROID_API_G__ 9
Expand Down

0 comments on commit f66fa49

Please sign in to comment.