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

Check __ANDROID__ define when guarding Android code #151

Merged
merged 1 commit into from
Jan 19, 2018

Conversation

rib
Copy link
Contributor

@rib rib commented Jan 18, 2018

Both gcc and clang define __ANDROID__ but not ANDROID when targeting Android so
at least with the Meson build, and an NDK r16 toolchain, testing on
Android failed without this change.

Afaik ANDROID gets defined by ndk-build which is one reason to see code check that instead, but I'm not sure what ensured it was defined for whoever originally added the Android support to libepoxy. Maybe they used an external Android.mk based build or just added -DANDROID to their cflags, not sure.

Both gcc and clang define __ANDROID__ but not ANDROID when targeting Android so
at least with the Meson build, and an NDK r16 toolchain, testing on
Android failed without this change.
@ebassi ebassi merged commit 3f1699b into anholt:master Jan 19, 2018
@ebassi
Copy link
Collaborator

ebassi commented Jan 19, 2018

Thanks for testing on Android!

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.

None yet

2 participants