summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-10-26 20:05:18 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-10-26 20:05:18 +0000
commitd6060030dc8baa17fa27f1c15bc1cceda919c151 (patch)
tree077ffc3479cf7b9f5f165e7a00eed99c379afec2
parent62ae666daf00ee9187b646202467254f5321d0a2 (diff)
parenta35aa0fe1231d9f1e8f393a16b0231460ccc335c (diff)
Merge "libbinder_ndk: add __ANDROID_VENDOR__ error" into main am: a35aa0fe12
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2802638 Change-Id: Ia834e71a3b59af1edff4297682480a3e81b5d2ce Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--libs/binder/ndk/stability.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/ndk/stability.cpp b/libs/binder/ndk/stability.cpp
index 7eafb9c025..73eb863706 100644
--- a/libs/binder/ndk/stability.cpp
+++ b/libs/binder/ndk/stability.cpp
@@ -27,6 +27,10 @@ using ::android::internal::Stability;
#error libbinder_ndk should only be built in a system context
#endif
+#ifdef __ANDROID_VENDOR__
+#error libbinder_ndk should only be built in a system context
+#endif
+
#ifdef __ANDROID_NDK__
#error libbinder_ndk should only be built in a system context
#endif