shithub: sox

Download patch

ref: 5ee564e92357d013efa9be72490687eca80fc078
parent: c84892ac0d9aaf40aa1b37f715cea942b150fefa
author: cbagwell <cbagwell>
date: Mon Dec 21 18:40:43 EST 2009

Revert use of fseeko64 on mingw for now since its buggy.

--- a/INSTALL
+++ b/INSTALL
@@ -18,7 +18,8 @@
 libraries, where to get them (if not from your OS distribution), and
 their licence types, is as follows:
 
-AMR-NB/WB         http://opencore-amr.sourceforge.net/  Apache
+OpencoreAMR-NB/WB http://opencore-amr.sourceforge.net/  Apache
+AMR-NB/WB         http://www.penguin.cz/~utx/amr/       See library web page
 AO                http://xiph.org/ao                    GPL
 ffmpeg            http://ffmpeg.mplayerhq.hu            LGPL
 FLAC              http://flac.sourceforge.net           BSD
--- a/configure.ac
+++ b/configure.ac
@@ -170,9 +170,6 @@
   AC_DEFINE(_LARGEFILE_SOURCE, 1)
 fi
 
-dnl Check for mingw's _fseeki64
-AC_CHECK_FUNCS(fseeko64)
-
 dnl Allow libtool to be silenced
 AC_MSG_CHECKING([whether libtool should be silenced])
 AC_ARG_ENABLE(silent-libtool,
--- a/src/sox_i.h
+++ b/src/sox_i.h
@@ -48,9 +48,6 @@
 #ifndef HAVE_FSEEKO
 #define fseeko fseek
 #define ftello ftell
-#ifndef _MSC_VER
-#define off_t long
-#endif
 #endif
 
 #ifdef _FILE_OFFSET_BITS
--- a/src/util.h
+++ b/src/util.h
@@ -73,14 +73,6 @@
 
 #endif
 
-#if defined(HAVE_FSEEKO64) && !defined(HAVE_FSEEKO)
-#define fseeko fseeko64
-#define ftello ftello64
-#undef off_t
-#define off_t off64_t
-#define HAVE_FSEEKO 1
-#endif
-
 #if defined(DOS) || defined(WIN32) || defined(__NT__) || defined(__DJGPP__) || defined(__OS2__)
   #define LAST_SLASH(path) max(strrchr(path, '/'), strrchr(path, '\\'))
   #define IS_ABSOLUTE(path) ((path)[0] == '/' || (path)[0] == '\\' || (path)[1] == ':')