Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbcf9d77 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 219643ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -227,6 +227,7 @@ int AndroidBitmap_compress(const AndroidBitmapInfo* info,
                           AndroidBitmap_CompressWriteFunc fn) __INTRODUCED_IN(30);

struct AHardwareBuffer;
typedef struct AHardwareBuffer AHardwareBuffer;

/**
 *  Retrieve the native object associated with a HARDWARE Bitmap.