We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef014b commit 59fc51cCopy full SHA for 59fc51c
1 file changed
libs/ui/Gralloc5.cpp
@@ -23,7 +23,6 @@
23
#include <aidlcommonsupport/NativeHandle.h>
24
#include <android/binder_manager.h>
25
#include <android/hardware/graphics/mapper/utils/IMapperMetadataTypes.h>
26
-#include <android/llndk-versioning.h>
27
#include <binder/IPCThreadState.h>
28
#include <dlfcn.h>
29
#include <ui/FatVector.h>
@@ -91,7 +90,7 @@ static void *loadIMapperLibrary() {
91
90
}
92
93
void* so = nullptr;
94
- if API_LEVEL_AT_LEAST (__ANDROID_API_V__, 202404) {
+ if (__builtin_available(android __ANDROID_API_V__, *)) {
95
so = AServiceManager_openDeclaredPassthroughHal("mapper", mapperSuffix.c_str(),
96
RTLD_LOCAL | RTLD_NOW);
97
} else {
0 commit comments