Browse Source

os_support: Undefine lseek/stat/fstat before defining them

This avoids a number of redefinition warnings on MinGW64.
tags/n2.4
Diego Biurrun 11 years ago
parent
commit
1019b7c4ed
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/os_support.h

+ 3
- 0
libavformat/os_support.h View File

@@ -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__) */



Loading…
Cancel
Save