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:

committed by
Simon Wilkinson

parent
c79f78874b
commit
bd78baf668
@@ -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
|
||||
|
Reference in New Issue
Block a user