From f1dfaa7a8262766f97f3293457fd830c091af99d Mon Sep 17 00:00:00 2001 From: kemuri Date: Thu, 3 Jun 2010 20:41:04 +0000 Subject: win32: Use _fstati64() instead of plain old fstat() on Windows to support file sizes greater than 4gb. Patch by kemuri Originally committed as revision 23448 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/os_support.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') diff --git a/libavformat/os_support.h b/libavformat/os_support.h index e90f2c244f..a3cc40a850 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -32,6 +32,8 @@ #if defined(__MINGW32__) && !defined(__MINGW32CE__) # include # define lseek(f,p,w) _lseeki64((f), (p), (w)) +# define stat _stati64 +# define fstat(f,s) _fstati64((f), (s)) #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */ static inline int is_dos_path(const char *path) -- cgit v1.2.3