1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

qt-faststart: Undefine fseeko/ftello before defining them

This avoids a number of redefinition warnings on MinGW64.
This commit is contained in:
Diego Biurrun 2014-08-15 21:43:48 +02:00
parent 1019b7c4ed
commit 3526ab891c

View File

@ -30,10 +30,14 @@
#include <string.h> #include <string.h>
#ifdef __MINGW32__ #ifdef __MINGW32__
#undef fseeko
#define fseeko(x, y, z) fseeko64(x, y, z) #define fseeko(x, y, z) fseeko64(x, y, z)
#undef ftello
#define ftello(x) ftello64(x) #define ftello(x) ftello64(x)
#elif defined(_WIN32) #elif defined(_WIN32)
#undef fseeko
#define fseeko(x, y, z) _fseeki64(x, y, z) #define fseeko(x, y, z) _fseeki64(x, y, z)
#undef ftello
#define ftello(x) _ftelli64(x) #define ftello(x) _ftelli64(x)
#endif #endif