* 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:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user