Define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there.
This commit is contained in:
parent
e4ba39b3cc
commit
5c256c518f
|
@ -516,6 +516,9 @@ VOID WINAPI GetSystemTimeAsFileTime(
|
|||
* 2) Time is relative. There is no 'starting date', so there is
|
||||
* no need for offset correction, like in UnixTimeToFileTime
|
||||
*/
|
||||
#ifndef CLK_TCK
|
||||
# define CLK_TCK CLOCKS_PER_SEC
|
||||
#endif
|
||||
static void TIME_ClockTimeToFileTime(clock_t unix_time, LPFILETIME filetime)
|
||||
{
|
||||
ULONGLONG secs = RtlEnlargedUnsignedMultiply( unix_time, 10000000 );
|
||||
|
|
Loading…
Reference in New Issue