avutil/os_support: use 64-bit fstat/lseek variants for MSVC as well
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 12 Mar 2013 15:45:13 +0000 (16:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Mar 2013 19:06:31 +0000 (20:06 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/os_support.c
libavformat/os_support.h

index ad1a23d..15cf753 100644 (file)
@@ -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>
index b06cefd..e5f31e0 100644 (file)
@@ -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