Windows: Include winsock2.h before ws2tcpip.h

Before we can include ws2tcpip.h, we must have already included
winsock2.h. The latest SDK does this by including winsock2 within
the ws2tcpip header, but the older SDKs do not, and fail to build.
This commit is contained in:
Jeffrey Altman
2010-11-22 23:09:07 +00:00
committed by Simon Wilkinson
parent c79f78874b
commit bd78baf668

View File

@@ -54,7 +54,8 @@
#ifdef HAVE_WINSOCK
/* Declarations for Microsoft Windows */
#include<ws2tcpip.h>
#include <winsock2.h>
#include <ws2tcpip.h>
/*
* error codes for inet_ntop/inet_pton