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

Commit e28f8abc authored by Craig Donner's avatar Craig Donner
Browse files

Make the AHardwareBuffer extension compatible with C.

The eglext.h file must be C-compatible, and is included by vendor C
code. C does not support magicking up the 'struct' keyword.

Fixes the change made in I0da1173688cd27b8dd9e907e535100b9a0605290

Bug: 34050596
Test: built, ran demo app using extension
Change-Id: Iaa3028c3ae2087f7368549565a778ce75110d3cb
parent 9257845a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -623,9 +623,9 @@ typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROID) (co
#define EGL_ANDROID_get_native_client_buffer 1
struct AHardwareBuffer;
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI EGLClientBuffer eglGetNativeClientBufferANDROID (const AHardwareBuffer *buffer);
EGLAPI EGLClientBuffer eglGetNativeClientBufferANDROID (const struct AHardwareBuffer *buffer);
#else
typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROID) (const AHardwareBuffer *buffer);
typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROID) (const struct AHardwareBuffer *buffer);
#endif
#endif