From 08e6cf5d7aa77c529bd8548eb86a66c1fdf029b9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 8 Feb 2021 12:37:53 -0800 Subject: Stop #define'ing __ANDROID_API__. Also normalize the non-bionic definitions of __INTRODUCED_IN() to match the majority. Bug: http://b/178449269 Test: treehugger Change-Id: I378a6d8a01999958f397c896a375d38a9de43f8f --- include/android/bitmap.h | 14 ++------------ include/android/imagedecoder.h | 14 ++------------ include/android/thermal.h | 2 +- 3 files changed, 5 insertions(+), 25 deletions(-) (limited to 'include/android') diff --git a/include/android/bitmap.h b/include/android/bitmap.h index 2362c9e491..a70dffd756 100644 --- a/include/android/bitmap.h +++ b/include/android/bitmap.h @@ -31,18 +31,8 @@ #include #include -#ifndef __ANDROID__ - // Value copied from 'bionic/libc/include/android/api-level.h' which is not available on - // non Android systems. It is set to 10000 which is same as __ANDROID_API_FUTURE__ value. - #ifndef __ANDROID_API__ - #define __ANDROID_API__ 10000 - #endif - - // Value copied from 'bionic/libc/include/android/versioning.h' which is not available on - // non Android systems - #ifndef __INTRODUCED_IN - #define __INTRODUCED_IN(api_level) - #endif +#if !defined(__INTRODUCED_IN) +#define __INTRODUCED_IN(__api_level) /* nothing */ #endif #ifdef __cplusplus diff --git a/include/android/imagedecoder.h b/include/android/imagedecoder.h index 48d217f765..1298c624dd 100644 --- a/include/android/imagedecoder.h +++ b/include/android/imagedecoder.h @@ -51,18 +51,8 @@ #include #include -#ifndef __ANDROID__ - // Value copied from 'bionic/libc/include/android/api-level.h' which is not available on - // non Android systems. It is set to 10000 which is same as __ANDROID_API_FUTURE__ value. - #ifndef __ANDROID_API__ - #define __ANDROID_API__ 10000 - #endif - - // Value copied from 'bionic/libc/include/android/versioning.h' which is not available on - // non Android systems - #ifndef __INTRODUCED_IN - #define __INTRODUCED_IN(api_level) - #endif +#if !defined(__INTRODUCED_IN) +#define __INTRODUCED_IN(__api_level) /* nothing */ #endif #ifdef __cplusplus diff --git a/include/android/thermal.h b/include/android/thermal.h index 5ebdc0298b..6ec68d99fc 100644 --- a/include/android/thermal.h +++ b/include/android/thermal.h @@ -53,7 +53,7 @@ #include #if !defined(__INTRODUCED_IN) -#define __INTRODUCED_IN(30) /* Introduced in API level 30 */ +#define __INTRODUCED_IN(__api_level) /* nothing */ #endif #ifdef __cplusplus -- cgit v1.2.3-59-g8ed1b