vm: fix windows compilation (untested)
							parent
							
								
									9d47f5d80d
								
							
						
					
					
						commit
						6578bd0533
					
				| 
						 | 
				
			
			@ -129,7 +129,12 @@ segment::~segment()
 | 
			
		|||
		myvm->fatal_error("Segment deallocation failed",0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
long factor_vm::getpagesize()
 | 
			
		||||
void factor_vm::sleep_micros(u64 usec)
 | 
			
		||||
{
 | 
			
		||||
	Sleep((DWORD)(usec / 1000));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
long getpagesize()
 | 
			
		||||
{
 | 
			
		||||
	static long g_pagesize = 0;
 | 
			
		||||
	if (! g_pagesize)
 | 
			
		||||
| 
						 | 
				
			
			@ -141,9 +146,4 @@ long factor_vm::getpagesize()
 | 
			
		|||
	return g_pagesize;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void factor_vm::sleep_micros(u64 usec)
 | 
			
		||||
{
 | 
			
		||||
	Sleep((DWORD)(usec / 1000));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,5 +45,6 @@ inline static void init_signals() {}
 | 
			
		|||
inline static void early_init() {}
 | 
			
		||||
 | 
			
		||||
s64 current_micros();
 | 
			
		||||
long getpagesize();
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -559,7 +559,6 @@ struct factor_vm : factor_vm_data {
 | 
			
		|||
	// os-windows
 | 
			
		||||
  #if defined(WINDOWS)
 | 
			
		||||
	void sleep_micros(u64 usec);
 | 
			
		||||
	long getpagesize();
 | 
			
		||||
	const vm_char *vm_executable_path();
 | 
			
		||||
	const vm_char *default_image_path();
 | 
			
		||||
	void windows_image_path(vm_char *full_path, vm_char *temp_path, unsigned int length);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue