[FFmpeg-cvslog] avutil/os_support: use 64-bit fstat/lseek variants for MSVC as well
Hendrik Leppkes
git at videolan.org
Tue Mar 12 20:12:58 CET 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Mar 12 16:45:13 2013 +0100| [713ac21097555722257343494f83999068006653] | committer: Michael Niedermayer
avutil/os_support: use 64-bit fstat/lseek variants for MSVC as well
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=713ac21097555722257343494f83999068006653
---
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 ad1a23d..15cf753 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 b06cefd..e5f31e0 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>
# ifdef lseek
# undef lseek
More information about the ffmpeg-cvslog
mailing list