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 iPhone build broken by fbb3f0c. #1568

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Conversation

NewCreature
Copy link
Contributor

Building for iPhone was failing on src/opengl/extensions.c. I traced the failure back to a change in commit fbb3f0c.

In order to keep that workaround functioning, I changed the #if defined ALLEGRO_MACOSX || defined __APPLE__ to #if defined __APPLE__ && !defined ALLEGRO_IPHONE.

This fix ensures the proper OpenGL header is included if we are building for MacOS (including the SDL port which disables the ALLEGRO_MACOSX platform definition) and it is not included if we are building for iPhone.

@SiegeLord
Copy link
Member

Are you referencing the right commit? Did you mean 74edb77?

Looks good either way (I don't have an iPhone handy to test this... I wonder if we can get a iPhone CI for this).

@NewCreature
Copy link
Contributor Author

Yeah, not sure how I got the wrong commit. I had 74edb77 pulled up while I was working on the patch.

@SiegeLord SiegeLord merged commit 0b85325 into liballeg:master Aug 3, 2024
2 of 3 checks passed
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