qt-faststart: Do not try to use fancy 64-bit seeking functions on mingw32ce
authorMartin Storsjö <martin@martin.st>
Thu, 13 Sep 2012 09:55:32 +0000 (12:55 +0300)
committerDiego Biurrun <diego@biurrun.de>
Thu, 24 Nov 2016 15:14:27 +0000 (16:14 +0100)
These functions are not available on mingw32ce.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tools/qt-faststart.c

index 0db5ca2..b798ccd 100644 (file)
 #include <inttypes.h>
 #include <string.h>
 
-#ifdef __MINGW32__
+#ifdef __MINGW32CE__
+#define fseeko(x, y, z) fseek(x, y, z)
+#define ftello(x)       ftell(x)
+#elif defined(__MINGW32__)
 #undef fseeko
 #define fseeko(x, y, z) fseeko64(x, y, z)
 #undef ftello