summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-06-30 15:57:59 -0700
committerElliott Hughes <enh@google.com>2017-06-30 17:50:44 -0700
commit8f5608b614b7908f4edde20a5461e46d4b080d9a (patch)
treebe5a6b6140467c0a9eaf3b7397b5fbac92fe3a64 /libc/stdio/stdio.cpp
parente202036e0377a578f2ae9ba3b5610c7763e5ab9d (diff)
Fix ffs on x86 for old API levels.
<strings.h>'s ffs used to work by accident. In the past, <strings.h> used to incorrectly declare ffs for all platforms at all API levels. In the unified headers, there's no such declaration for x86 before API 18 (which makes sense, because that function was missing on x86 until then). But as long as there was a declaration for ffs, the compiler just inlined __builtin_ffs. There was no problem at link time because the compiler didn't actually add a reference to the missing ffs symbol. Restore the old behavior by manually instructing the compiler to inline its builtin in these cases. Bug: https://github.com/android-ndk/ndk/issues/439 Test: built new NDK 'ffs' test Change-Id: I840e99f237c86f7cb028a0f67aaa8c6ff3eda245
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions