summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-16 18:15:38 +0100
committerGravatar Martin Szulecki2013-02-16 18:15:38 +0100
commit37268e184e6f5202c34b00be2478f33f8819d0ee (patch)
treec149f51cbe0b02576df530dbd920abfe85b9953f
parent8ffb051a30cdd12f682dbfce5a293160c260a65c (diff)
downloadaxis2c-37268e184e6f5202c34b00be2478f33f8819d0ee.tar.gz
axis2c-37268e184e6f5202c34b00be2478f33f8819d0ee.tar.bz2
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.
-rw-r--r--util/include/platforms/windows/axutil_windows.h2
1 files changed, 1 insertions, 1 deletions
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 <axutil_utils_defines.h>
+#include <winsock2.h>
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
#include <windows.h>
@@ -35,7 +36,6 @@
#include <sys/stat.h>
/*for network handling */
-#include <winsock2.h>
#include <fcntl.h>
#include <mswsock.h>
#include <ws2tcpip.h>