Skip to content

Commit 0034aef

Browse files
author
Priyanka Advani (xWF)
committed
Revert "Use __builtin_available guard"
Revert submission 3334193-no-llndk-versioning Reason for revert: Droidmonitor created revert due to b/378038995. Will be verifying through ABTD before submission. Reverted changes: /q/submissionid:3334193-no-llndk-versioning Change-Id: I7c8262a79fe1f85f1f225a5421aab6126dc76175
1 parent 8ded18c commit 0034aef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/ui/Gralloc5.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <aidlcommonsupport/NativeHandle.h>
2424
#include <android/binder_manager.h>
2525
#include <android/hardware/graphics/mapper/utils/IMapperMetadataTypes.h>
26+
#include <android/llndk-versioning.h>
2627
#include <binder/IPCThreadState.h>
2728
#include <dlfcn.h>
2829
#include <ui/FatVector.h>
@@ -90,7 +91,7 @@ static void *loadIMapperLibrary() {
9091
}
9192

9293
void* so = nullptr;
93-
if (__builtin_available(android __ANDROID_API_V__, *)) {
94+
if API_LEVEL_AT_LEAST (__ANDROID_API_V__, 202404) {
9495
so = AServiceManager_openDeclaredPassthroughHal("mapper", mapperSuffix.c_str(),
9596
RTLD_LOCAL | RTLD_NOW);
9697
} else {

0 commit comments

Comments
 (0)