changeset 29038:b9b2967c0c6d

Get rid of gettimeofday reimplementation for MinGW, all remotely recent versions of MinGW already provide it.
author reimar
date Fri, 27 Mar 2009 19:34:50 +0000
parents 77ebd4202149
children ce682f8d1f68
files cpuinfo.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/cpuinfo.c	Fri Mar 27 19:09:33 2009 +0000
+++ b/cpuinfo.c	Fri Mar 27 19:34:50 2009 +0000
@@ -8,15 +8,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#if defined(__MINGW32__) && (__MINGW32_MAJOR_VERSION <= 3) && (__MINGW32_MINOR_VERSION < 10) && !defined(MINGW64)
-#include <sys/timeb.h>
-void gettimeofday(struct timeval* t,void* timezone) {
-  struct timeb timebuffer;
-  ftime( &timebuffer );
-  t->tv_sec=timebuffer.time;
-  t->tv_usec=1000*timebuffer.millitm;
-}
-#endif
 #ifdef __MINGW32__
 #define MISSING_USLEEP
 #include <windows.h>