aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-03-12 16:45:13 +0100
committerMartin Storsjö <martin@martin.st>2013-03-27 19:05:58 +0200
commit85a46ad685048f0c389f0f997c6e33e5546d0b3b (patch)
tree1e2f6907fbd5784fd9eeb7298c57c096fd7b5e7b
parentad04025987e5c926ae5bde8947a44b3f1346e64c (diff)
downloadffmpeg-85a46ad685048f0c389f0f997c6e33e5546d0b3b.tar.gz
win32: Use 64-bit fstat/lseek variants for MSVC as well
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/os_support.c3
-rw-r--r--libavformat/os_support.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 30581ed7c2..2d8a90346a 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 c5d3ab4b33..39d4cb6519 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