-
Notifications
You must be signed in to change notification settings - Fork 1
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
MSVC Cmake #6
MSVC Cmake #6
Conversation
Cmake build work
Fixed LIBM target issue and added the missing file gettimeoftheday c
python/grass/script/core.py
Outdated
@@ -56,7 +56,7 @@ | |||
): | |||
cmd = shutil.which(args[0]) | |||
if cmd is None: | |||
raise OSError(_("Cannot find the executable {0}").format(args[0])) | |||
raise OSError(_("Cannot find the executable {0}, {1}, {2}").format(args[0], shutil.which(args[0]), os.getenv('PATH'))) |
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.
[ruff] reported by reviewdog 🐶
raise OSError(_("Cannot find the executable {0}, {1}, {2}").format(args[0], shutil.which(args[0]), os.getenv('PATH'))) | |
raise OSError(_("Cannot find the executable {0}, {1}, {2}").format(args[0], shutil.which(args[0]), os.getenv("PATH"))) |
* FILETIME represents the number of 100-nanosecond intervals since | ||
* January 1, 1601 (UTC). | ||
*/ | ||
#define FILETIME_UNITS_PER_SEC 10000000L |
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.
[clang-format] reported by reviewdog 🐶
#define FILETIME_UNITS_PER_SEC 10000000L | |
#define FILETIME_UNITS_PER_SEC 10000000L |
#define FILETIME_UNITS_PER_SEC 10000000L | ||
#define FILETIME_UNITS_PER_USEC 10 | ||
|
||
|
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.
[clang-format] reported by reviewdog 🐶
int | ||
gettimeofday(struct timeval *tp, void *tzp) |
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.
[clang-format] reported by reviewdog 🐶
int | |
gettimeofday(struct timeval *tp, void *tzp) | |
int gettimeofday(struct timeval *tp, void *tzp) |
FILETIME file_time; | ||
ULARGE_INTEGER ularge; |
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.
[clang-format] reported by reviewdog 🐶
FILETIME file_time; | |
ULARGE_INTEGER ularge; | |
FILETIME file_time; | |
ULARGE_INTEGER ularge; |
/* | ||
* POSIX declines to define what tzp points to, saying "If tzp is not a | ||
* null pointer, the behavior is unspecified". Let's take this | ||
* opportunity to verify that noplace in Postgres tries to use any | ||
* unportable behavior. | ||
*/ | ||
Assert(tzp == NULL); |
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.
[clang-format] reported by reviewdog 🐶
/* | |
* POSIX declines to define what tzp points to, saying "If tzp is not a | |
* null pointer, the behavior is unspecified". Let's take this | |
* opportunity to verify that noplace in Postgres tries to use any | |
* unportable behavior. | |
*/ | |
Assert(tzp == NULL); | |
/* | |
* POSIX declines to define what tzp points to, saying "If tzp is not a | |
* null pointer, the behavior is unspecified". Let's take this | |
* opportunity to verify that noplace in Postgres tries to use any | |
* unportable behavior. | |
*/ | |
Assert(tzp == NULL); |
GetSystemTimePreciseAsFileTime(&file_time); | ||
ularge.LowPart = file_time.dwLowDateTime; | ||
ularge.HighPart = file_time.dwHighDateTime; |
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.
[clang-format] reported by reviewdog 🐶
GetSystemTimePreciseAsFileTime(&file_time); | |
ularge.LowPart = file_time.dwLowDateTime; | |
ularge.HighPart = file_time.dwHighDateTime; | |
GetSystemTimePreciseAsFileTime(&file_time); | |
ularge.LowPart = file_time.dwLowDateTime; | |
ularge.HighPart = file_time.dwHighDateTime; |
tp->tv_sec = (long) ((ularge.QuadPart - epoch) / FILETIME_UNITS_PER_SEC); | ||
tp->tv_usec = (long) (((ularge.QuadPart - epoch) % FILETIME_UNITS_PER_SEC) | ||
/ FILETIME_UNITS_PER_USEC); |
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.
[clang-format] reported by reviewdog 🐶
tp->tv_sec = (long) ((ularge.QuadPart - epoch) / FILETIME_UNITS_PER_SEC); | |
tp->tv_usec = (long) (((ularge.QuadPart - epoch) % FILETIME_UNITS_PER_SEC) | |
/ FILETIME_UNITS_PER_USEC); | |
tp->tv_sec = (long)((ularge.QuadPart - epoch) / FILETIME_UNITS_PER_SEC); | |
tp->tv_usec = (long)(((ularge.QuadPart - epoch) % FILETIME_UNITS_PER_SEC) / | |
FILETIME_UNITS_PER_USEC); |
tp->tv_usec = (long) (((ularge.QuadPart - epoch) % FILETIME_UNITS_PER_SEC) | ||
/ FILETIME_UNITS_PER_USEC); | ||
|
||
return 0; |
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.
[clang-format] reported by reviewdog 🐶
return 0; | |
return 0; |
…m modules to common directory and Fixed __attribute__ issue in glocale.h(MSVC)
0c69d7e
to
8125579
Compare
How to build:
msbuild GRASS.sln
Currently Fixing MSVC errors