Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-15 23:42:56 +0400
committerDiego Biurrun <diego@biurrun.de>2014-08-22 20:35:19 +0400
commit1019b7c4edff537499c4a6cb0d65abae04ce58f6 (patch)
treeb5d3af49edda72795db5d1762b0e34012ff9d524 /libavformat/os_support.h
parent051aadeed104ecbe8ee4850ec2d7e5394f5e1ccd (diff)
os_support: Undefine lseek/stat/fstat before defining them
This avoids a number of redefinition warnings on MinGW64.
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index ae8cef7efa..8a757d71a3 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -33,8 +33,11 @@
#if defined(_WIN32) && !defined(__MINGW32CE__)
# include <fcntl.h>
+# undef lseek
# define lseek(f,p,w) _lseeki64((f), (p), (w))
+# undef stat
# define stat _stati64
+# undef fstat
# define fstat(f,s) _fstati64((f), (s))
#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */