Support for libc variants without fseeko/ftello #4229
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some older Android libc implementations don't support
fseeko
orftello
. This commit adds a new compile-time macroLIBC_NO_FSEEKO
as well as a usage in CMake for Android APIs 23 and below. Note this change is NOT intended to add support for zstd within old AOSP distributions. Google has long since stopped updating old branches. If you are an app developer working on API 23 or lower, this will allow you to package zstd in your app yourself.Tested by adding the project in Android Studio and building the enclosing app on SDK versions 23 and 34 (current).
Used defaultConfig: