From 4f15c9e30e03f7ed39744c3b02e001727a5ba29e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Raimo=20J=C3=A4rvi?= Date: Wed, 8 Jun 2011 18:33:10 +0300 Subject: [PATCH] udp: Fix compiler warning on mingw-w64 Fixes: #652144. gstudpnetutils.h:32:0: error: "WINVER" redefined /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:231:0: note: this is the location of the previous definition --- gst/udp/gstudpnetutils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h index ec863bd..9b52ed9 100644 --- a/gst/udp/gstudpnetutils.h +++ b/gst/udp/gstudpnetutils.h @@ -29,7 +29,9 @@ #ifdef G_OS_WIN32 /* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later. * minwg32 headers check WINVER before allowing the use of these */ +#ifndef WINVER #define WINVER 0x0501 +#endif #include #include #ifndef socklen_t -- 2.7.4