1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 06:33:16 +00:00

Fix MSVC compiler error.

This commit is contained in:
Calvin Rose 2018-07-08 21:14:08 -04:00
parent f232cf28ff
commit 423ebc937a

View File

@ -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*/