sdp: Include winsock2.h after defining WINVER.
authorPeter Kjellerstedt <pkj@axis.com>
Mon, 29 Jun 2009 07:36:27 +0000 (09:36 +0200)
committerPeter Kjellerstedt <pkj@axis.com>
Mon, 29 Jun 2009 07:36:27 +0000 (09:36 +0200)
Similar to bug #587080.

gst-libs/gst/sdp/gstsdpmessage.c

index 3064800..5495abc 100644 (file)
 #include <gst/gstinfo.h>        /* For GST_STR_NULL */
 
 #ifdef G_OS_WIN32
-#ifdef _MSC_VER
-#include <Winsock2.h>
-#endif
 /* 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
+#ifdef _MSC_VER
+#include <Winsock2.h>
+#endif
 #include <ws2tcpip.h>
 #else
 #include <sys/socket.h>