summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-12 07:55:18 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-12 07:55:18 +0200
commitb22ec396405d05f9c47f78b56214b8381979e575 (patch)
treef5b81ddf1b18f74670bd56a37563b2f29ce08f9d
parentef5cac3d8c6bd2bfd52b75e3f2e8db385565acbd (diff)
downloadcurl-b22ec396405d05f9c47f78b56214b8381979e575.tar.gz
system.h: include winsock2.h before windows.h
... to avoid compiler warnings if the user doesn't want WIN32_LEAN_AND_MEAN.
-rw-r--r--include/curl/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/curl/system.h b/include/curl/system.h
index e808580eb..79abf8fc2 100644
--- a/include/curl/system.h
+++ b/include/curl/system.h
@@ -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