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 iOS detection #282

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

SirLynix
Copy link
Contributor

IOS macro is not automatically defined when compiling to iOS devices.

The reliable way to detect iOS is to detect __APPLE__, include <TargetConditionals.h> and then check for TARGET_OS_IPHONE.

See https://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor and https://gist.github.com/TatsuyaOGth/7a6006c9ddecbc3fb655

@albertodemichelis albertodemichelis merged commit c02bf2d into albertodemichelis:master Jan 25, 2024
1 check passed
@SirLynix SirLynix deleted the patch-1 branch January 25, 2024 10:17
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