From 713ac21097555722257343494f83999068006653 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 12 Mar 2013 16:45:13 +0100 Subject: [PATCH] avutil/os_support: use 64-bit fstat/lseek variants for MSVC as well Signed-off-by: Michael Niedermayer --- 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 ad1a23d0ed..15cf753072 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 #include #include diff --git a/libavformat/os_support.h b/libavformat/os_support.h index b06cefd45e..e5f31e05a4 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -31,7 +31,7 @@ #include -#if defined(__MINGW32__) && !defined(__MINGW32CE__) +#if defined(_WIN32) && !defined(__MINGW32CE__) # include # ifdef lseek # undef lseek