summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorkemuri <kemuri9@gmail.com>2010-06-03 20:41:04 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-06-03 20:41:04 +0000
commitf1dfaa7a8262766f97f3293457fd830c091af99d (patch)
treee1d82a1c9f51780d3114b9f41f860cbe28861029 /libavformat/os_support.h
parent3c80491daa7bdbcc0070e0c03f4d4b8ae75113a1 (diff)
win32: Use _fstati64() instead of plain old fstat() on Windows to support file
sizes greater than 4gb. Patch by kemuri <kemuri9 at gmail dot com> Originally committed as revision 23448 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h2
1 files changed, 2 insertions, 0 deletions
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 <fcntl.h>
# 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)