Browse Source

qt-faststart: Use other seek/tell functions on MSVC than on mingw

Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö 12 years ago
parent
commit
dd4169ab92
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tools/qt-faststart.c

+ 3 - 0
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])