# HG changeset patch # User jb # Date 1275412033 0 # Node ID f06a93055430147ad12e1b4213e2b0b1c26b795b # Parent 60720f86d145afa9f6889f0b437adfebfee41d21 Win32: large file support under Mingw to go over 2G limits Patch by John Stebbins of Handbrake diff -r 60720f86d145 -r f06a93055430 dvd_input.h --- a/dvd_input.h Tue Jun 01 07:27:56 2010 +0000 +++ b/dvd_input.h Tue Jun 01 17:07:13 2010 +0000 @@ -31,6 +31,17 @@ typedef struct dvd_input_s *dvd_input_t; +#if defined( __MINGW32__ ) +# undef lseek +# define lseek _lseeki64 +# undef off_t +# define off_t off64_t +# undef stat +# define stat _stati64 +# define fstat _fstati64 +# define wstat _wstati64 +#endif + /** * Function pointers that will be filled in by the input implementation. * These functions provide the main API.