From e4106253e73e4a08cedcb8ac6c87cec0375fc70e Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 7 Jan 2022 16:06:54 -0800 Subject: [PATCH] Fix copy pasta in guard macro for weak symbols. This was pretty broken. I think anything using this was being given always-available annotations for everything but 32-bit x86? Treehugger should complain loudly if this was actually impacting anything though. I suspect not since the only user of this mode is mainline which doesn't target far back enough to have arch-specific introduction guards. Test: treehugger Bug: None Change-Id: I64e96a89d83e64512e661e88915c48a091198992 --- libc/include/android/versioning.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/android/versioning.h b/libc/include/android/versioning.h index 214acf2e1..efe4354cb 100644 --- a/libc/include/android/versioning.h +++ b/libc/include/android/versioning.h @@ -51,7 +51,7 @@ // those APIs will still cause a link error. #if defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__) #define __BIONIC_AVAILABILITY(__what) __attribute__((__availability__(android,__what))) -#define __INTRODUCED_IN_NO_GUARD_FOR_NDK(api_level) __INTRODUCED_IN_X86(api_level) +#define __INTRODUCED_IN_NO_GUARD_FOR_NDK(api_level) __INTRODUCED_IN(api_level) #define __INTRODUCED_IN_X86_NO_GUARD_FOR_NDK(api_level) __INTRODUCED_IN_X86(api_level) #else #define __BIONIC_AVAILABILITY(__what) __attribute__((__availability__(android,strict,__what)))