fix build issue on i686-pc-mingw (struct __timeb64 is missing)

This commit is contained in:
nu774 2013-02-18 02:05:07 +09:00
parent d6a8b9652a
commit bd02d0e753
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@ AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
AC_SYS_LARGEFILE
AC_CHECK_TYPES([struct __timeb64],[],[],[[#include <sys/timeb.h>]])
AC_FUNC_FSEEKO
AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo strdup _vscprintf])
AC_CHECK_FUNC(getopt_long)

View File

@ -31,8 +31,13 @@ int __wgetmainargs(int *, wchar_t ***, wchar_t ***, int, _startupinfo *);
int64_t aacenc_timer(void)
{
#if _MSC_VER || HAVE_STRUCT___TIMEB64
struct __timeb64 tv;
_ftime64(&tv);
#else
struct timeb tv;
ftime(&tv);
#endif
return (int64_t)tv.time * 1000 + tv.millitm;
}