OSDN Git Service

Only #define lseek to _lseeki64 on MinGW, not MinGW CE.
authorİsmail Dönmez <ismail@namtrac.org>
Mon, 13 Jul 2009 17:16:36 +0000 (17:16 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 13 Jul 2009 17:16:36 +0000 (17:16 +0000)
This fixes compilation on WinCE, which does not support _lseeki64.
patch by Ismail Dönmez, ismail namtrac org

Originally committed as revision 19425 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/os_support.h

index f6330d8..d460363 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "config.h"
 
-#ifdef __MINGW32__
+#if defined(__MINGW32__) && !defined(__MINGW32CE__)
 #  include <fcntl.h>
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))
 #endif