diff TOOLS/cpuinfo.c @ 18910:5f31565951f7

MinGW 3.1 has added gettimeofday. based on a patch by Gianluigi Tiesi mplayer++at++netfarm++dot++it
author diego
date Wed, 05 Jul 2006 22:47:47 +0000
parents 0e2d54a7cb61
children a163f6de7bdc
line wrap: on
line diff
--- a/TOOLS/cpuinfo.c	Wed Jul 05 22:39:54 2006 +0000
+++ b/TOOLS/cpuinfo.c	Wed Jul 05 22:47:47 2006 +0000
@@ -8,7 +8,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#ifdef __MINGW32__
+#if defined(__MINGW32__) && (__MINGW32_MAJOR_VERSION <= 3) && (__MINGW32_MINOR_VERSION < 10)
 #include <sys/timeb.h>
 void gettimeofday(struct timeval* t,void* timezone) {
   struct timeb timebuffer;