Commit ed3c0fe8 authored by Vincent Torri's avatar Vincent Torri Committed by Michael Niedermayer

Remove some warnings when compiling with mingw (mingw-w64, 32 bits)

Reviewed-by: 's avatarRamiro Polla <ramiro.polla@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1f0fa80b
......@@ -31,9 +31,21 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#ifdef EPROTONOSUPPORT
# undef EPROTONOSUPPORT
#endif
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
#ifdef ETIMEDOUT
# undef ETIMEDOUT
#endif
#define ETIMEDOUT WSAETIMEDOUT
#ifdef ECONNREFUSED
# undef ECONNREFUSED
#endif
#define ECONNREFUSED WSAECONNREFUSED
#ifdef EINPROGRESS
# undef EINPROGRESS
#endif
#define EINPROGRESS WSAEINPROGRESS
int ff_neterrno(void);
......
......@@ -31,6 +31,9 @@
#if defined(__MINGW32__) && !defined(__MINGW32CE__)
# include <fcntl.h>
# ifdef lseek
# undef lseek
# endif
# define lseek(f,p,w) _lseeki64((f), (p), (w))
# define stat _stati64
# define fstat(f,s) _fstati64((f), (s))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment