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:
parent
ef5cac3d8c
commit
b22ec39640
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user