Merge "versioner: don't always hide future decls."
This commit is contained in:
commit
84e269d5af
|
@ -221,7 +221,7 @@ static std::string generateGuardCondition(const DeclarationAvailability& avail)
|
|||
bool future = avail.arch_availability[*it.second.begin()].future;
|
||||
|
||||
if (future) {
|
||||
return "0";
|
||||
return "__ANDROID_API__ >= __ANDROID_API_FUTURE__";
|
||||
}
|
||||
|
||||
// The maximum min_version of the set.
|
||||
|
|
|
@ -68,3 +68,9 @@ int multiple_introduced_2() __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(14) __I
|
|||
int group_lp32() __INTRODUCED_IN_ARM(12) __INTRODUCED_IN_X86(12) __INTRODUCED_IN_MIPS(12);
|
||||
#endif /* (!defined(__LP64__) && __ANDROID_API__ >= 12) || (defined(__LP64__)) */
|
||||
|
||||
|
||||
|
||||
#if __ANDROID_API__ >= __ANDROID_API_FUTURE__
|
||||
int future() __INTRODUCED_IN_FUTURE;
|
||||
#endif /* __ANDROID_API__ >= __ANDROID_API_FUTURE__ */
|
||||
|
||||
|
|
|
@ -40,3 +40,5 @@ int multiple_introduced_2() __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(14) __I
|
|||
__INTRODUCED_IN_64(22);
|
||||
|
||||
int group_lp32() __INTRODUCED_IN_ARM(12) __INTRODUCED_IN_X86(12) __INTRODUCED_IN_MIPS(12);
|
||||
|
||||
int future() __INTRODUCED_IN_FUTURE;
|
||||
|
|
Loading…
Reference in New Issue