mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
This commit is contained in:
parent
fc3b43ef62
commit
2f49eb30b1
1 changed files with 2 additions and 0 deletions
|
@ -29,7 +29,9 @@
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
|
/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
|
||||||
* minwg32 headers check WINVER before allowing the use of these */
|
* minwg32 headers check WINVER before allowing the use of these */
|
||||||
|
#ifndef WINVER
|
||||||
#define WINVER 0x0501
|
#define WINVER 0x0501
|
||||||
|
#endif
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#ifndef socklen_t
|
#ifndef socklen_t
|
||||||
|
|
Loading…
Reference in a new issue