This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<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: android/ndk#439 Test: built new NDK 'ffs' test Change-Id: I840e99f237c86f7cb028a0f67aaa8c6ff3eda245
- Loading branch information