From 3526ab891c28396ada8b58bf7647309bab30de1d Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 15 Aug 2014 21:43:48 +0200 Subject: qt-faststart: Undefine fseeko/ftello before defining them This avoids a number of redefinition warnings on MinGW64. --- tools/qt-faststart.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') 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 #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 -- cgit v1.2.3