Define WINVER before including any win headers
authorРуслан Ижбулатов <lrn1986@gmail.com>
Fri, 26 Jun 2009 17:48:58 +0000 (21:48 +0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 27 Jun 2009 12:02:50 +0000 (14:02 +0200)
Fixes bug #587080.

gst-libs/gst/rtsp/gstrtspconnection.c

index c5f0369..79ee05e 100644 (file)
 #include <gst/gst.h>
 
 #ifdef G_OS_WIN32
-#include <winsock2.h>
-/* 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 <winsock2.h>
+/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
+ * minwg32 headers check WINVER before allowing the use of these */
 #include <ws2tcpip.h>
 #define EINPROGRESS WSAEINPROGRESS
 #else