Define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there.

This commit is contained in:
Marcus Meissner 2005-10-31 10:04:57 +00:00 committed by Alexandre Julliard
parent e4ba39b3cc
commit 5c256c518f
1 changed files with 3 additions and 0 deletions

View File

@ -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 );