summaryrefslogtreecommitdiff
path: root/libavformat/network.h
diff options
context:
space:
mode:
authorVincent Torri <vincent_dot_torri_at_gmail_dot_com>2012-01-29 10:45:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-03 19:51:13 +0100
commited3c0fe85dd5c228e98126b18e50ffb617e77070 (patch)
tree29ecb8889c7310a5955d81398010d24d9edece34 /libavformat/network.h
parent1f0fa80bfa7a0a2ee455679510761f7e138444ae (diff)
Remove some warnings when compiling with mingw (mingw-w64, 32 bits)
Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/network.h')
-rw-r--r--libavformat/network.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index 9f7b78202e..191c00891f 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -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);