[FFmpeg-cvslog] os_support: Undefine lseek/stat/fstat before defining them
Diego Biurrun
git at videolan.org
Fri Aug 22 21:55:28 CEST 2014
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Aug 15 21:42:56 2014 +0200| [1019b7c4edff537499c4a6cb0d65abae04ce58f6] | committer: Diego Biurrun
os_support: Undefine lseek/stat/fstat before defining them
This avoids a number of redefinition warnings on MinGW64.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1019b7c4edff537499c4a6cb0d65abae04ce58f6
---
libavformat/os_support.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index ae8cef7..8a757d7 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__) */
More information about the ffmpeg-cvslog
mailing list