libc: Add <android/api-level.h>

Add a new header that defines __ANDROID_API__ as a constant integer
corresponding to the current native API level. This header is included
by <sys/cdefs.h>

Change-Id: Ib4774e247b395991266245815a24292afc919848
NOTE: This header is already provided by the NDK's platform headers.
      for levels 3 to 9.
This commit is contained in:
David 'Digit' Turner
2010-12-06 12:05:11 +01:00
parent 9962cef7c6
commit 23d24394e7
3 changed files with 44 additions and 1 deletions

View File

@@ -1,7 +1,16 @@
Bionic ChangeLog:
-----------------
Differences between current and Android 2.2:
Differences between current and Android 2.3:
- <android/api-level.h>: Added new header to define __ANDROID_API__ to
a constant integer corresponding to the native API level. This header
also exists in the NDK's platform headers.
- <sys/cdefs.h>: Include <android/api-level.h>
-------------------------------------------------------------------------------
Differences between Android 2.3 and Android 2.2:
- <pthread.h>: Add reader/writer locks implementation. Add sanity
checking to pthread_mutex_destroy() (e.g. a locked mutex will return