mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 00:50:26 +00:00
Fix MSVC compiler error.
This commit is contained in:
parent
f232cf28ff
commit
423ebc937a
@ -197,7 +197,8 @@ static int os_exit(DstArgs args) {
|
|||||||
|
|
||||||
/* Clock shim for windows */
|
/* Clock shim for windows */
|
||||||
#ifdef DST_WINDOWS
|
#ifdef DST_WINDOWS
|
||||||
static int clock_gettime(int, struct timespec *spec) {
|
static int clock_gettime(int x, struct timespec *spec) {
|
||||||
|
(void) x;
|
||||||
int64_t wintime = 0LL;
|
int64_t wintime = 0LL;
|
||||||
GetSystemTimeAsFileTime((FILETIME*)&wintime);
|
GetSystemTimeAsFileTime((FILETIME*)&wintime);
|
||||||
/* Windows epoch is January 1, 1601 apparently*/
|
/* Windows epoch is January 1, 1601 apparently*/
|
||||||
|
Loading…
Reference in New Issue
Block a user