mirror of
				https://github.com/janet-lang/janet
				synced 2025-11-03 17:13:10 +00:00 
			
		
		
		
	Fix MSVC compiler error.
This commit is contained in:
		@@ -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*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user