* autoload.cc (GetSystemTimePreciseAsFileTime): Define.

* times.cc (GetSystemTimePreciseAsFileTime): Temporarily declare here
	to workaround missing definition in 32 bit w32api headers.
	(get_system_time): New always inline function to call either
	GetSystemTimePreciseAsFileTime or GetSystemTimeAsFileTime on a per OS
	basis.  Call throughout instead of GetSystemTimeAsFileTime.
	* wincap.h (wincaps::has_precise_system_time): New element.
	* wincap.cc: Implement above element throughout.
This commit is contained in:
Corinna Vinschen
2013-06-14 15:41:17 +00:00
parent 0ff057d5a5
commit 7584fa98d4
5 changed files with 34 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ struct wincaps
unsigned has_program_compatibility_assistant : 1;
unsigned has_pipe_reject_remote_clients : 1;
unsigned terminate_thread_frees_stack : 1;
unsigned has_precise_system_time : 1;
};
class wincapc
@@ -87,6 +88,7 @@ public:
bool IMPLEMENT (has_program_compatibility_assistant)
bool IMPLEMENT (has_pipe_reject_remote_clients)
bool IMPLEMENT (terminate_thread_frees_stack)
bool IMPLEMENT (has_precise_system_time)
#undef IMPLEMENT
};