diff options
author | 2021-02-04 03:27:40 +0000 | |
---|---|---|
committer | 2021-02-04 03:27:40 +0000 | |
commit | d228c4aefd71acc3a8edfc40d614602a2334eb9f (patch) | |
tree | 67b79bff025d04205e59dd98c62a343fa6e796b5 /include/android/bitmap.h | |
parent | 78384d55f61e8efb64e5a3de074c7853cc41ad24 (diff) | |
parent | b0ff56b7e80a371a183609b1e3238b8688558ece (diff) |
Merge "Support building libjnigraphics on the host" am: 07278cc954 am: b0ff56b7e8
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1573920
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib84cd716f7e3cab7c0d1c102aad4979f06e43319
Diffstat (limited to 'include/android/bitmap.h')
-rw-r--r-- | include/android/bitmap.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/android/bitmap.h b/include/android/bitmap.h index 36f70d8e15..2362c9e491 100644 --- a/include/android/bitmap.h +++ b/include/android/bitmap.h @@ -28,8 +28,23 @@ #include <stdbool.h> #include <stdint.h> +#include <stddef.h> #include <jni.h> +#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 +#endif + #ifdef __cplusplus extern "C" { #endif |