[MPlayer-dev-eng] [PATCH] drop support for old MinGW versions
Diego Biurrun
diego at biurrun.de
Fri Mar 27 20:28:59 CET 2009
On Fri, Mar 27, 2009 at 08:23:24PM +0100, Reimar Döffinger wrote:
> 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:
> --- cpuinfo.c (revision 29071)
> +++ cpuinfo.c (working copy)
> @@ -8,15 +8,6 @@
>
> -#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
>
> Any objections?
No, it's a horrible hack, get rid of it.
Diego
More information about the MPlayer-dev-eng
mailing list