summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2024-06-18 01:12:30 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-06-18 01:12:30 +0000
commit9b1356c1390ca036fb3058afa024e6f69ea76a5c (patch)
treeb3c975257e9d8fef00825d5c44bd4d74984d9371
parent579f0c2a2ee68484fa59cf51ea974b5cd0d0a931 (diff)
parent2a2f7145decd6f57f214bd4a5d56595830de4875 (diff)
Merge "libbinder_ndk: V APIs are guarded with V" into main
-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 {