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

@@ -497,5 +497,6 @@
#endif
#define __BIONIC__ 1
#include <android/api-level.h>
#endif /* !_SYS_CDEFS_H_ */