aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-08-28 22:40:27 +0300
committerMartin Storsjö <martin@martin.st>2012-08-29 00:23:34 +0300
commitdd4169ab924f00391711a21dd3c6c1f90d2795e0 (patch)
tree617d7b9b8cea0c6171ea15475ca1a2129c79a841 /tools
parentbff714ad4c1a3db38816a9ebded20ef4f60ad08f (diff)
downloadffmpeg-dd4169ab924f00391711a21dd3c6c1f90d2795e0.tar.gz
qt-faststart: Use other seek/tell functions on MSVC than on mingw
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tools')
-rw-r--r--tools/qt-faststart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 8d2196c683..f33d6fa80c 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -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])