diff options
author | Elliott Hughes <enh@google.com> | 2014-05-07 12:37:44 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-07 12:57:51 -0700 |
commit | 4aa2e6a32a1ab90dc5baa626f6efc0feb9082716 (patch) | |
tree | c5b8bc72c189ea2f6548c7379cde40005b68519e /libc/include/android/api-level.h | |
parent | 837abf04667c29db178fd28f500537429a18be30 (diff) | |
download | android_bionic-4aa2e6a32a1ab90dc5baa626f6efc0feb9082716.tar.gz android_bionic-4aa2e6a32a1ab90dc5baa626f6efc0feb9082716.tar.bz2 android_bionic-4aa2e6a32a1ab90dc5baa626f6efc0feb9082716.zip |
Give bionic's __ANDROID_API__ a more reasonable value.
This matches what frameworks/base does with Build.VERSION and means that
bionic's version number will always sort >= than any released version.
This should prevent confusion in code that builds both against bionic
and the NDK.
(Note that <sys/cdefs.h> drags this in, so it's always in the namespace.)
Bug: 14613709
Change-Id: I91fb745920e848a6b20f2f5797c0a7d6cde6c032
Diffstat (limited to 'libc/include/android/api-level.h')
-rw-r--r-- | libc/include/android/api-level.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/include/android/api-level.h b/libc/include/android/api-level.h index 611fdfbcd..2d2f0968c 100644 --- a/libc/include/android/api-level.h +++ b/libc/include/android/api-level.h @@ -25,9 +25,14 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef ANDROID_API_LEVEL_H #define ANDROID_API_LEVEL_H -#define __ANDROID_API__ 10 +/* + * Magic version number for a current development build, which has + * not yet turned into an official release. + */ +#define __ANDROID_API__ 10000 #endif /* ANDROID_API_LEVEL_H */ |