summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-08-09 02:04:40 -0700
committer android-build-merger <android-build-merger@google.com> 2019-08-09 02:04:40 -0700
commitee4bf4c9660809e7fb967cccfd6bdcfc67b3b113 (patch)
tree10caf6302f8551bded5045c49f7f5ad88ba4fc50
parent48475bf5310ecd71025ed8c134b30b49547604d9 (diff)
parent1bc89a26ce7ac42662c4870eab93d23f41ebf72c (diff)
Merge "libbinder_ndk: __ANDROID_NDK__ canary"
am: 1bc89a26ce Change-Id: I9402033210c3af5dd03446abd70ce8f1a96681c0
-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 abafe1f69f..a5b3ecea4a 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_NDK__
+#error libbinder_ndk should only be built in a system context
+#endif
+
// explicit extern because symbol is only declared in header when __ANDROID_VNDK__
extern "C" void AIBinder_markVendorStability(AIBinder* binder) {
Stability::markVndk(binder->getBinder().get());