diff options
author | Dan Albert <danalbert@google.com> | 2021-01-29 16:24:06 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2021-02-01 12:53:22 -0800 |
commit | eae41f8eebe3371cdfb7b0a11bf424b15a2179b1 (patch) | |
tree | 62f14263e9ea7267d796fbb9b86fc549224857c7 /libc/stdio/stdio.cpp | |
parent | c09fe618898c91616a47c1c4c17068135e8d936c (diff) |
Fix __VERSIONER_NO_GUARD cases for availability.
libc++ still depends on these being declared even if they are
unavailable. This results in a worse error message (a link error
rather than a compiler diagnostic) if these functions end up being
used, but without the decl headers like libc++'s math.h can't be
included because it refers to an undeclared function.
For the cases where weak symbols aren't being used, don't annotate
these functions with their availability information.
Also need to avoid using __builtin_available for this case because the
NDK doesn't have __isOSVersionAtLeast yet.
__ANDROID_UNGUARDED_AVAILABILITY__ is being used as a proxy for
"building for the NDK" here because we don't have a good signal for
that which works for both the NDK proper and the NDK-in-the-platform
case.
Test: imported into the NDK, built and tested NDK
Bug: None
Change-Id: I9ef3e19a8fa083bca0be47b80dfef7ba52a94866
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions