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 for Windows using _WIN32 instead of _WINDOWS #9

Open
wants to merge 1 commit into
base: omemo
Choose a base branch
from

Conversation

hrxi
Copy link

@hrxi hrxi commented Nov 5, 2023

_WINDOWS isn't guaranteed to be defined when building for Windows.

https://stackoverflow.com/q/73705992

Additionally, #include <WinBase.h> is unnecessary; #include <Windows.h> already covers it.

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa366877(v=vs.85)

`_WINDOWS` isn't guaranteed to be defined when building for Windows.

https://stackoverflow.com/q/73705992

Additionally, `#include <WinBase.h>` is unnecessary; `#include
<Windows.h>` already covers it.

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa366877(v=vs.85)
@Neustradamus
Copy link

@mar-v-in, @fiaxh: What do you think about this PR?

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