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

Core: Convert some preprocessor checking to use #ifdef/#if defined() over #if #12525

Merged
merged 5 commits into from Jan 24, 2024

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Jan 23, 2024

In a few cases, we were assuming certain definitions would exist, but e.g. __APPLE__ wouldn't be defined by default on Windows.

This isn't a huge deal (the most that would happen is some warning/output spam), but we can just convert them over to make it nicer.

Previously this was treating the identifier as if it were always defined
by default
This is only defined on certain platforms and isn't always defined.
\#if assumes the symbols will always be defined, but they aren't
depending on the platform.
This way we don't assume these symbols are always defined.
@AdmiralCurtiss AdmiralCurtiss merged commit 5692e15 into dolphin-emu:master Jan 24, 2024
11 checks passed
@lioncash lioncash deleted the defined branch January 24, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants