Module: libav Branch: master Commit: 85a46ad685048f0c389f0f997c6e33e5546d0b3b
Author: Hendrik Leppkes <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Tue Mar 12 16:45:13 2013 +0100 win32: Use 64-bit fstat/lseek variants for MSVC as well Signed-off-by: Martin Storsjö <[email protected]> --- libavformat/os_support.c | 3 +++ libavformat/os_support.h | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) 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 _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
