[MPlayer-dev-eng] [PATCH] drop support for old MinGW versions

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Mar 27 20:23:24 CET 2009


Hello,
we usually do not support old versions, and I do not see any particular
reason to support (by now) almost ancient MinGW versions, so I propose
this patch:
Index: cpuinfo.c
===================================================================
--- cpuinfo.c   (revision 29071)
+++ cpuinfo.c   (working copy)
@@ -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>


Any objections?



More information about the MPlayer-dev-eng mailing list