[libbluray-devel] commit: mingw: use ftello64() and fseeko64() (hpi1 )

Jean-Baptiste Kempf jb at videolan.org
Sat Aug 21 01:05:36 CEST 2010


On Fri, Aug 20, 2010 at 04:03:47PM -0700, John Stebbins wrote :
> Fyi, I use these defines to deal with mingw large file issues on handbrake.

> #if defined( __MINGW32__ )
> #   undef  lseek
> #   define lseek  _lseeki64
> #   undef  fseeko
> #   define fseeko fseeko64
> #   undef  ftello
> #   define ftello ftello64
> #   define flockfile(...)
> #   define funlockfile(...)
> #   define getc_unlocked getc
> #   undef  off_t
> #   define off_t off64_t
> #   undef  stat
> #   define stat  _stati64
> #   define fstat _fstati64
> #   define wstat _wstati64
> #endif

That is mostly what I suggested on IRC, too.

Also, libbluray might not need all of those.

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/
+33 672 704 734


More information about the libbluray-devel mailing list