mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 16:40:27 +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 */
|
||||
#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;
|
||||
GetSystemTimeAsFileTime((FILETIME*)&wintime);
|
||||
/* Windows epoch is January 1, 1601 apparently*/
|
||||
|
Loading…
Reference in New Issue
Block a user