OSDN Git Service

This patch adds mingw32 cross-compilation support to HandBrake trunk to
[handbrake-jp/handbrake-jp-git.git] / contrib / libdvdread / P05-mingw-large-file.patch
1 --- libdvdread.orig/dvdread/dvd_input.h 2005-09-06 12:23:00.000000000 -0700
2 +++ libdvdread/dvdread/dvd_input.h      2009-03-25 15:01:39.000000000 -0700
3 @@ -28,6 +28,24 @@
4  
5  #define DVDINPUT_READ_DECRYPT    (1 << 0)
6  
7 +#if defined( __MINGW32__ )
8 +#   undef  lseek
9 +#   define lseek  _lseeki64
10 +#   undef  fseeko
11 +#   define fseeko fseeko64
12 +#   undef  ftello
13 +#   define ftello ftello64
14 +#   define flockfile(...)
15 +#   define funlockfile(...)
16 +#   define getc_unlocked getc
17 +#   undef  off_t
18 +#   define off_t off64_t
19 +#   undef  stat
20 +#   define stat  _stati64
21 +#   define fstat _fstati64
22 +#   define wstat _wstati64
23 +#endif
24 +
25  typedef struct dvd_input_s *dvd_input_t;
26  
27  /**
28