]> git.sesse.net Git - ffmpeg/commitdiff
qt-faststart: Use other seek/tell functions on MSVC than on mingw
authorMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 19:40:27 +0000 (22:40 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 21:23:34 +0000 (00:23 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
tools/qt-faststart.c

index 8d2196c6833163d8c4ab072ad5d74bb994dc793f..f33d6fa80c0c328e699028131314e632b4b0ff52 100644 (file)
@@ -32,6 +32,9 @@
 #ifdef __MINGW32__
 #define fseeko(x, y, z) fseeko64(x, y, z)
 #define ftello(x)       ftello64(x)
+#elif defined(_WIN32)
+#define fseeko(x, y, z) _fseeki64(x, y, z)
+#define ftello(x)       _ftelli64(x)
 #endif
 
 #define BE_16(x) ((((uint8_t*)(x))[0] <<  8) | ((uint8_t*)(x))[1])