1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

system.h: include winsock2.h before windows.h

... to avoid compiler warnings if the user doesn't want
WIN32_LEAN_AND_MEAN.
This commit is contained in:
Marcel Raad 2017-07-12 07:55:18 +02:00
parent ef5cac3d8c
commit b22ec39640
No known key found for this signature in database
GPG Key ID: 07ADACB610D796DA

View File

@ -442,8 +442,8 @@
/* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */ /* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */
/* ws2tcpip.h is required here to properly make type definitions below. */ /* ws2tcpip.h is required here to properly make type definitions below. */
#ifdef CURL_PULL_WS2TCPIP_H #ifdef CURL_PULL_WS2TCPIP_H
# include <windows.h>
# include <winsock2.h> # include <winsock2.h>
# include <windows.h>
# include <ws2tcpip.h> # include <ws2tcpip.h>
#endif #endif