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

Commit 2ea0d460 authored by Ryan Prichard's avatar Ryan Prichard
Browse files

Fix NdkImage.h includes

It needs stdint.h.

It's OK to include android/hardware_buffer.h on pre-26. We'd like to remove
the __ANDROID_API__ guard around AImage_getHardwareBuffer, and if/when we
do, we'll need android/hardware_buffer.h. The last time we removed the
__ANDROID_API__ guards around the APIs, we forgot to remove the one around
this #include.

Bug: http://b/111130072#comment12
Test: builds
Change-Id: Ice8073476d4ad4802e3540f15eee3af29e0b891f
Exempt-From-Owner-Approval: cherrypick
(cherry picked from commit c2039dc5)
parent 6ae90b1c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -36,13 +36,12 @@
#ifndef _NDK_IMAGE_H
#define _NDK_IMAGE_H

#include <stdint.h>
#include <sys/cdefs.h>

#include "NdkMediaError.h"

#if __ANDROID_API__ >= 26
#include <android/hardware_buffer.h>
#endif /* __ANDROID_API__ >= 26 */

__BEGIN_DECLS