OSDN Git Service

MacGui: Remove Target Size as a rate control option as it doesn't really work correct...
[handbrake-jp/handbrake-jp-git.git] / contrib / libdvdread / P05-mingw-large-file.patch
1 diff -Naur libdvdread.orig/src/dvd_input.h libdvdread/src/dvd_input.h
2 --- libdvdread.orig/src/dvd_input.h     2008-10-03 13:11:30.000000000 -0700
3 +++ libdvdread/src/dvd_input.h  2009-04-23 13:47:04.000000000 -0700
4 @@ -29,6 +29,24 @@
5  
6  #define DVDINPUT_READ_DECRYPT    (1 << 0)
7  
8 +#if defined( __MINGW32__ )
9 +#   undef  lseek
10 +#   define lseek  _lseeki64
11 +#   undef  fseeko
12 +#   define fseeko fseeko64
13 +#   undef  ftello
14 +#   define ftello ftello64
15 +#   define flockfile(...)
16 +#   define funlockfile(...)
17 +#   define getc_unlocked getc
18 +#   undef  off_t
19 +#   define off_t off64_t
20 +#   undef  stat
21 +#   define stat  _stati64
22 +#   define fstat _fstati64
23 +#   define wstat _wstati64
24 +#endif
25 +
26  typedef struct dvd_input_s *dvd_input_t;
27  
28  /**