wine/dlls/kernel time.c
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 31 04:04:57 CST 2005
ChangeSet ID: 20986
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at winehq.org 2005/10/31 04:04:57
Modified files:
dlls/kernel : time.c
Log message:
Marcus Meissner <meissner at suse.de>
Define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there.
Patch: http://cvs.winehq.org/patch.py?id=20986
Old revision New revision Changes Path
1.55 1.56 +3 -0 wine/dlls/kernel/time.c
Index: wine/dlls/kernel/time.c
diff -u -p wine/dlls/kernel/time.c:1.55 wine/dlls/kernel/time.c:1.56
--- wine/dlls/kernel/time.c 31 Oct 2005 10: 4:57 -0000
+++ /dev/null 31 Oct 2005 10: 4:57 -0000
@@ -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 );
More information about the wine-cvs
mailing list