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

Commit eaac2b49 authored by Avichal Rakesh's avatar Avichal Rakesh
Browse files

native_window_aidl: include cpp headers only when needed

native_window_aidl.h only enables the AIDL glue for CPP/NDK backends,
so the headers required for AIDL glue should only be included
for CPP/NDK backends.

This CL includes headers required by AIDL glue only when the AIDL
glue is actually being enabled.

Bug: 283283111
Test: Verified that Surface can be used in an AIDL file.
Change-Id: I1945d3cfc247bfa507ca4fef03044e1078e598f0
parent 796ed47a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,8 +34,11 @@
#include <android/native_window.h>
#include <sys/cdefs.h>

// Only required by the AIDL glue helper
#ifdef __cplusplus
#include <sstream>
#include <string>
#endif // __cplusplus

__BEGIN_DECLS