aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qt-faststart.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-15 21:43:48 +0200
committerDiego Biurrun <diego@biurrun.de>2014-08-22 18:35:20 +0200
commit3526ab891c28396ada8b58bf7647309bab30de1d (patch)
treead0b71332417660ea70ce94b91b0aa8c73a2458b /tools/qt-faststart.c
parent1019b7c4edff537499c4a6cb0d65abae04ce58f6 (diff)
downloadffmpeg-3526ab891c28396ada8b58bf7647309bab30de1d.tar.gz
qt-faststart: Undefine fseeko/ftello before defining them
This avoids a number of redefinition warnings on MinGW64.
Diffstat (limited to 'tools/qt-faststart.c')
-rw-r--r--tools/qt-faststart.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index ed6de1b86c..0db5ca2138 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -30,10 +30,14 @@
#include <string.h>
#ifdef __MINGW32__
+#undef fseeko
#define fseeko(x, y, z) fseeko64(x, y, z)
+#undef ftello
#define ftello(x) ftello64(x)
#elif defined(_WIN32)
+#undef fseeko
#define fseeko(x, y, z) _fseeki64(x, y, z)
+#undef ftello
#define ftello(x) _ftelli64(x)
#endif