Mercurial > libavformat.hg
diff os_support.c @ 1171:2a0c729ac640 libavformat
CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.
| author | diego |
|---|---|
| date | Tue, 11 Jul 2006 21:45:45 +0000 |
| parents | 5b0ff52e008e |
| children | 0899bfe4105c |
line wrap: on
line diff
--- a/os_support.c Tue Jul 11 00:53:55 2006 +0000 +++ b/os_support.c Tue Jul 11 21:45:45 2006 +0000 @@ -20,7 +20,7 @@ #include "avformat.h" #if defined(CONFIG_WINCE) /* Skip includes on WinCE. */ -#elif defined(CONFIG_WIN32) +#elif defined(__MINGW32__) #include <sys/types.h> #include <sys/timeb.h> #elif defined(CONFIG_OS2) @@ -40,7 +40,7 @@ { #if defined(CONFIG_WINCE) return timeGetTime() * int64_t_C(1000); -#elif defined(CONFIG_WIN32) +#elif defined(__MINGW32__) struct timeb tb; _ftime(&tb); return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000);
