CLOCKS_PER_SEC definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

CLOCKS_PER_SEC is defined in time.h under windows (and linux), but the 
msvcrt/time.h header doesn't define it.
I suppose this patch should be applied to make it even easier to port 
applications to winelib.

--
Antonio Larrosa Jiménez
Tedial Tecnologías Digitales Audiovisuales, S.L.
Index: include/msvcrt/time.h
===================================================================
RCS file: /home/wine/wine/include/msvcrt/time.h,v
retrieving revision 1.4
diff -u -p -r1.4 time.h
--- include/msvcrt/time.h	18 Dec 2002 20:17:20 -0000	1.4
+++ include/msvcrt/time.h	3 Jun 2003 15:49:01 -0000
@@ -59,6 +59,10 @@ typedef long MSVCRT(clock_t);
 #endif
 #endif
 
+#ifndef CLOCKS_PER_SEC
+#define CLOCKS_PER_SEC 1000
+#endif
+
 #ifndef MSVCRT_TM_DEFINED
 #define MSVCRT_TM_DEFINED
 struct MSVCRT(tm) {

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux