aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-03-14 03:35:13 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-14 03:35:13 +0000
commitf3a8ae87fd8bd2e10fd7211d368d2ba230713585 (patch)
treead3fe8281300b3a6fe25963cb65939adbcbb4447
parent8af71663c0780e2f403381a879e8469493b5b417 (diff)
parentced630225a6ff5b9a246dea00ff4eaa922eb746d (diff)
downloadbionic-f3a8ae87fd8bd2e10fd7211d368d2ba230713585.tar.gz
Merge "Ignore bionic versioning in vendor modules" into main
-rw-r--r--libc/include/android/versioning.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/include/android/versioning.h b/libc/include/android/versioning.h
index 08fe45dfd..c5adc02cf 100644
--- a/libc/include/android/versioning.h
+++ b/libc/include/android/versioning.h
@@ -76,3 +76,9 @@
#define __VERSIONER_FORTIFY_INLINE
#endif // defined(__BIONIC_VERSIONER)
+
+// Vendor modules do not follow SDK versioning. Ignore NDK guards for vendor modules.
+#if defined(__ANDROID_VENDOR__)
+#undef __BIONIC_AVAILABILITY
+#define __BIONIC_AVAILABILITY(x)
+#endif // defined(__ANDROID_VENDOR__)