changeset 51:f06a93055430 src

Win32: large file support under Mingw to go over 2G limits Patch by John Stebbins of Handbrake
author jb
date Tue, 01 Jun 2010 17:07:13 +0000
parents 60720f86d145
children 645a8b52b951
files dvd_input.h
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.