Make bitmap.h C-compatible when __ANDROID_API__ >= 30
C requires a typedef for AHardwareBuffer.
Fixes:
frameworks/native/include/android/bitmap.h:246:9: error: must use 'struct' tag to refer to type 'AHardwareBuffer'
Fixes: 150165785
Test: m checkbuild
Change-Id: I6d475e91317ff7a9264144d4cd6c6c9b46d10196
diff --git a/include/android/bitmap.h b/include/android/bitmap.h
index 727a4af..2631b14 100644
--- a/include/android/bitmap.h
+++ b/include/android/bitmap.h
@@ -227,6 +227,7 @@
AndroidBitmap_CompressWriteFunc fn) __INTRODUCED_IN(30);
struct AHardwareBuffer;
+typedef struct AHardwareBuffer AHardwareBuffer;
/**
* Retrieve the native object associated with a HARDWARE Bitmap.