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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/grass/gis.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static const char *GRASS_copyright UNUSED = "GRASS GNU GPL licensed Software";
#define WKT_FILE "PROJ_WKT"
#define SRID_FILE "PROJ_SRID"

#ifdef __MINGW32__
#ifdef _WIN32
#define CONFIG_DIR "GRASS8"
#else
#define CONFIG_DIR ".grass8"
Expand All @@ -161,6 +161,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


#undef M_R2D
#define M_R2D 57.295779513082320877 /* 180/pi */
Expand Down
2 changes: 1 addition & 1 deletion lib/db/dbmi_base/dirent.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <grass/dbmi.h>

/* NOTE: these should come from <unistd.h> or from <sys/file.h> */
#ifndef R_OK
#if !defined(HAVE_UNISTD_H)
#ifndef R_OK
#define R_OK 4
#endif
#ifndef W_OK
Expand Down
Loading