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

Use _WIN32 (compiler definition) instead of WIN32 (sdk definition) #2266

Merged
merged 3 commits into from
Feb 20, 2020

Conversation

jackgerrits
Copy link
Member

When building on Windows outside of the Visual Studio environment, often WIN32 is not defined which breaks platform checks. Using _WIN32 is safer as it is reserved for the compiler implementation and does not rely on headers bringing it in.

@jackgerrits jackgerrits merged commit 899ad76 into master Feb 20, 2020
@jackgerrits jackgerrits deleted the jagerrit/_win32_fix branch March 5, 2020 14:33
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