From 37268e184e6f5202c34b00be2478f33f8819d0ee Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 16 Feb 2013 18:15:38 +0100 Subject: Fix MingW compiler warning about include order of winsock2.h By including windows.h before winsock2.h old winsock code will be used underneath. To prevent this winsock2.h needs to be included first which will cause the use of the correct winsock code for Win32 targets. --- util/include/platforms/windows/axutil_windows.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/include/platforms/windows/axutil_windows.h b/util/include/platforms/windows/axutil_windows.h index 4964562..e087371 100644 --- a/util/include/platforms/windows/axutil_windows.h +++ b/util/include/platforms/windows/axutil_windows.h @@ -24,6 +24,7 @@ * @brief axis2 unix platform specific interface */ #include +#include #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */ #include @@ -35,7 +36,6 @@ #include /*for network handling */ -#include #include #include #include -- cgit v1.1-32-gdbae