# HG changeset patch # User ramiro # Date 1184617636 0 # Node ID 00cdb026030fc47a9c951b3252f9d4639dea357d # Parent e48ed322f893f246e52eb50cab465afa475e7f2a MinGW has gettimeofday() since mingw-runtime-3.10 diff -r e48ed322f893 -r 00cdb026030f os_support.c --- a/os_support.c Mon Jul 16 14:51:43 2007 +0000 +++ b/os_support.c Mon Jul 16 20:27:16 2007 +0000 @@ -21,14 +21,11 @@ */ #include "config.h" #include "avformat.h" -#if defined(__MINGW32__) -#include -#include -#else +#if !defined(__MINGW32__) #include #include +#endif #include -#endif #include #ifndef HAVE_SYS_POLL_H @@ -44,15 +41,9 @@ */ int64_t av_gettime(void) { -#if defined(__MINGW32__) - struct timeb tb; - _ftime(&tb); - return ((int64_t)tb.time * INT64_C(1000) + (int64_t)tb.millitm) * INT64_C(1000); -#else struct timeval tv; gettimeofday(&tv,NULL); return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec; -#endif } #ifdef CONFIG_NETWORK