-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fixed compiler warnings and errors under MSYS2+MINGW64 platform. #186
Fixed compiler warnings and errors under MSYS2+MINGW64 platform. #186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to fix issues and open a PR! What's the reason for adding the #ifndef
guard for WIN32_LEAN_AND_MEAN
? The only time I would expect this to pop up is if a user was using fetch_content
and did add_compile_definitions
globally.
I am using cpptrace for extending signal handler in the widelands game - https://github.com/widelands/widelands/
And it results in these compiler issues, which I didn't experience in 0.7.1 version.
Attached is the full testing diff for the wideland's master branch |
And a little unrelated question, but there is another class of compiler warnings, when using -Wmissing-include-dirs, like:
gcc gets parameter -isystem D:/code/widelands/build/_deps/cpptrace-build/include |
This is probably the main reason:
widelands is using SDL and asio libraries and they define |
Thanks for clarifying and providing the additional info, I think it's very reasonable to do this special handling for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for taking the time to do this!
Fixed compiler warnings and errors under MSYS2+MINGW64 platform.