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

Commit 4f61be28 authored by Jooyung Han's avatar Jooyung Han
Browse files

libui: use __ANDROID_API_V__

__builtin_available() now works with preview SDK version (V in this
case). No need to use __ANDROID_API_FUTURE__ which was a workaround.

__builtin_available(andorid 35, *) evaluates to true if
- the platform SDK version is 35 or higher
- or, the platform is a preview (not REL)

Bug: 322384429
Test: CF loads mapper from vapex
Change-Id: I264cf444a0fb163e445471920930b6be3930dd03
parent 5b7e5350
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -90,8 +90,7 @@ static void *loadIMapperLibrary() {
        }

        void* so = nullptr;
        // TODO(b/322384429) switch this to __ANDROID_API_V__ when V is finalized
        if API_LEVEL_AT_LEAST(__ANDROID_API_FUTURE__, 202404) {
        if API_LEVEL_AT_LEAST (__ANDROID_API_V__, 202404) {
            so = AServiceManager_openDeclaredPassthroughHal("mapper", mapperSuffix.c_str(),
                                                            RTLD_LOCAL | RTLD_NOW);
        } else {