Skip to content

Commit

Permalink
system.h: include winsock2.h before windows.h
Browse files Browse the repository at this point in the history
... to avoid compiler warnings if the user doesn't want
WIN32_LEAN_AND_MEAN.
  • Loading branch information
MarcelRaad committed Jul 12, 2017
1 parent ef5cac3 commit b22ec39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/curl/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@
/* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */
/* ws2tcpip.h is required here to properly make type definitions below. */
#ifdef CURL_PULL_WS2TCPIP_H
# include <windows.h>
# include <winsock2.h>
# include <windows.h>
# include <ws2tcpip.h>
#endif

Expand Down

0 comments on commit b22ec39

Please sign in to comment.