Skip to content

MSVC: Improve MSVC support (part 3) #5514

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

echoix
Copy link
Member

@echoix echoix commented Apr 6, 2025

Replaces #356, named "Msvc support 3"

I rebased/cherry-picked the PR #356 in order to make it reviewable. The last 10 commits of that PR were of interest, but multiple have already been included, so less remains.

I tried to make it such as it highlights what was different in the cases where conflicts existed. This means that not everything from this PR might be worthy of including it. At least it is reviewable, and mergeable.

While rebasing, I had to solve the conflict where I think there had been a bad resolution in #3621, and here it contains what I think the original commit wanted to do. See #356 (comment) and #356 (comment).

@github-actions github-actions bot added C Related code is in C database Related to database management libraries labels Apr 6, 2025
@@ -162,6 +168,7 @@ static const char *GRASS_copyright UNUSED = "GRASS GNU GPL licensed Software";

#undef M_PI_4
#define M_PI_4 0.78539816339744830962 /* pi/4 */
#endif
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably to remove too, if the _USE_MATH_DEFINES 1 approach isn't kept.

Suggested change
#endif

@echoix echoix requested a review from HuidaeCho May 22, 2025 22:50
Copy link
Member Author

@echoix echoix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with Huidae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C database Related to database management libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants