summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-09-02 15:00:21 +0900
committerJiyong Park <jiyong@google.com>2021-01-15 10:40:51 +0900
commitbb19208d66ae39a47e8291aca43f9113b4bda694 (patch)
treea0c3d3e9f36395e7aace9f204e22f8790c6d59cb /libc/stdio/stdio.cpp
parent23bfed2a10b9b228c63ce70526108ead7b5f8d67 (diff)
Guard __libc_current_sigrtmin/max with __builtin_available
The two APIs were added for the API level 21 and beyond. Currently, its existence is tested using the null check which is done regardless of the min sdk version of the compilation unit. (which in turn required us to mark the API symbol weak regardless of the min sdk version.) Now, we have a better way of testing the API availability; __builtin_available. The null check is replaced with the call to the compiler-provided macro which determines if the code is running in a version of OS where the API is known to exist. Bug: 150860940 Bug: 134795810 Test: m Change-Id: Ib96c78f8d3cc71d7e755d1eab86051517bbbcc44
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions