-
Notifications
You must be signed in to change notification settings - Fork 636
build-sys: fix checking Windows platform with _WIN32 macro #3977
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
Conversation
Biswa96
commented
Apr 3, 2024
I don't know Windows well. However, our own |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3977 +/- ##
=======================================
Coverage 85.39% 85.39%
=======================================
Files 235 235
Lines 56609 56609
=======================================
Hits 48339 48339
Misses 8270 8270 ☔ View full report in Codecov by Sentry. |
@Biswa96 |
The issue was seen in geany project, here geany/geany#3660
It is not required at all and contradicts with official and well-known |
Can we remove -DWIN32 from *.mak files? |
Yes, those can be removed also. I did not notice them at first. |
Could you refer to geany/geany#3660 in the commit log? |
I have added the geany pull request link in commit message. |
Here are some example of the compiler and linker error in geany which are fixed by this change.
|
Can I ask you to change the prefix of the header of the commit log from "build.main,lex" to "build-sys" ?
|
This replaces WIN32 with _WIN32 macro to check Windows platform. The correct one is _WIN32 as documented in the official documentation. https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros This fixes the build issue with geany project, see the following thread geany/geany#3660
@k-takata Thank you for reviewing. |