summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2024-06-18 01:30:35 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-06-18 01:30:35 +0000
commitbaa25f16d74e211bcd6cc8db0d51bf00ec4c202b (patch)
treeb3c975257e9d8fef00825d5c44bd4d74984d9371
parent48990a2b556db01c615cc5b36aab3fe481a52d4b (diff)
parent9b1356c1390ca036fb3058afa024e6f69ea76a5c (diff)
Merge "libbinder_ndk: V APIs are guarded with V" into main am: 9b1356c139
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3133241 Change-Id: Ia72aee7e6d680961d415a4f4562ada3b78c009c4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--libs/binder/ndk/include_cpp/android/persistable_bundle_aidl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/binder/ndk/include_cpp/android/persistable_bundle_aidl.h b/libs/binder/ndk/include_cpp/android/persistable_bundle_aidl.h
index 61fb9379fa..b2ffb2bf3c 100644
--- a/libs/binder/ndk/include_cpp/android/persistable_bundle_aidl.h
+++ b/libs/binder/ndk/include_cpp/android/persistable_bundle_aidl.h
@@ -26,13 +26,10 @@
#if defined(__ANDROID_VENDOR__)
#include <android/llndk-versioning.h>
#else // __ANDROID_VENDOR__
-#if defined(API_LEVEL_AT_LEAST)
-// Redefine API_LEVEL_AT_LEAST here to replace the version to __ANDROID_API_FUTURE__ as a workaround
-#undef API_LEVEL_AT_LEAST
-#endif
-// TODO(b/322384429) switch this __ANDROID_API_FUTURE__ to sdk_api_level when V is finalized
+#if !defined(API_LEVEL_AT_LEAST)
#define API_LEVEL_AT_LEAST(sdk_api_level, vendor_api_level) \
- (__builtin_available(android __ANDROID_API_FUTURE__, *))
+ (__builtin_available(android sdk_api_level, *))
+#endif
#endif // __ANDROID_VENDOR__
namespace aidl::android::os {