Merge "versioner: don't always hide future decls."

This commit is contained in:
Treehugger Robot 2016-11-09 02:07:17 +00:00 committed by Gerrit Code Review
commit 84e269d5af
3 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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__ */

View File

@ -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;