Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on newer android NDKs #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

justin-espedal
Copy link

This fixes compilation with NDK 21, at least. I can't guarantee other versions, but NDK 15 still works as well.

__NDK_MAJOR__ is present for NDK 16+.
NDK 19+ includes log2f.

__NDK_MAJOR__ is present for NDK 16+. NDK 19+ includes log2f.
log2f is available in the arm64 headers.
@player-03
Copy link

Works for me on NDK 21, but not NDK 15. I had to combine new and old code to make it work in both cases.

I'll submit my own pull request if needed, but I'm pretty sure you can just cherry-pick my commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants