From 70e912edbada6f9942201c590130921bf1d08eb1 Mon Sep 17 00:00:00 2001 From: nu774 Date: Wed, 20 Feb 2013 10:29:12 +0900 Subject: [PATCH] use fseeko64() on i686-pc-mingw32 --- configure.ac | 2 +- src/compat.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fa9d587..6fbe8c0 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ AC_CHECK_TYPES([ptrdiff_t]) AC_SYS_LARGEFILE AC_CHECK_TYPES([struct __timeb64],[],[],[[#include ]]) AC_FUNC_FSEEKO -AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo strdup _vscprintf]) +AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo _vscprintf fseeko64]) AC_CHECK_FUNC(getopt_long) AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"]) AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[]) diff --git a/src/compat.h b/src/compat.h index 07deb5b..4f651ab 100644 --- a/src/compat.h +++ b/src/compat.h @@ -6,7 +6,10 @@ #define COMPAT_H #ifndef HAVE_FSEEKO -# if _MSC_VER >= 1400 +# if HAVE_FSEEKO64 +# define fseeko fseeko64 +# define ftello ftello64 +# elif _MSC_VER >= 1400 # define fseeko _fseeki64 # define ftello _ftelli64 # else -- 2.39.2