[FFmpeg-cvslog] win32: Use 64-bit fstat/lseek variants for MSVC as well
Hendrik Leppkes
git at videolan.org
Thu Mar 28 12:33:59 CET 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Mar 12 16:45:13 2013 +0100| [85a46ad685048f0c389f0f997c6e33e5546d0b3b] | committer: Martin Storsjö
win32: Use 64-bit fstat/lseek variants for MSVC as well
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85a46ad685048f0c389f0f997c6e33e5546d0b3b
---
libavformat/os_support.c | 3 +++
libavformat/os_support.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 30581ed..2d8a903 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -29,6 +29,9 @@
#if defined(_WIN32) && !defined(__MINGW32CE__)
#undef open
+#undef lseek
+#undef stat
+#undef fstat
#include <fcntl.h>
#include <io.h>
#include <windows.h>
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index c5d3ab4..39d4cb6 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -31,7 +31,7 @@
#include <sys/stat.h>
-#if defined(__MINGW32__) && !defined(__MINGW32CE__)
+#if defined(_WIN32) && !defined(__MINGW32CE__)
# include <fcntl.h>
# define lseek(f,p,w) _lseeki64((f), (p), (w))
# define stat _stati64
More information about the ffmpeg-cvslog
mailing list