From: Raimo Järvi Date: Wed, 8 Jun 2011 15:33:10 +0000 (+0300) Subject: udp: Fix compiler warning on mingw-w64 X-Git-Tag: 1.19.3~509^2~7136^2~484^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f49eb30b1e32026800ca07782d59ac9efd4733e;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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