aboutsummaryrefslogtreecommitdiff
path: root/include/curl/system.h
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-10 14:56:11 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:29:43 +0000
commit12ab1e4243c5af6aaac4fb27886c31772bf4eef4 (patch)
tree76e94a4a2c83372fb56fe7814e2232f6e7e1d275 /include/curl/system.h
parente01832963901c40021744e97180c13727176d495 (diff)
downloadgnurl-12ab1e4243c5af6aaac4fb27886c31772bf4eef4.tar.gz
gnurl-12ab1e4243c5af6aaac4fb27886c31772bf4eef4.tar.bz2
gnurl-12ab1e4243c5af6aaac4fb27886c31772bf4eef4.zip
curl_setup: always define WIN32_LEAN_AND_MEAN on Windows
Make sure to always define WIN32_LEAN_AND_MEAN before including any Windows headers to avoid pulling in unnecessary headers. This avoids unnecessary macro clashes and compiler warnings. Ref: https://github.com/curl/curl/issues/1562 Closes https://github.com/curl/curl/pull/1672
Diffstat (limited to 'include/curl/system.h')
-rw-r--r--include/curl/system.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/curl/system.h b/include/curl/system.h
index 973c73ad4..e808580eb 100644
--- a/include/curl/system.h
+++ b/include/curl/system.h
@@ -442,9 +442,6 @@
/* 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
-# ifndef WIN32_LEAN_AND_MEAN
-# define WIN32_LEAN_AND_MEAN
-# endif
# include <windows.h>
# include <winsock2.h>
# include <ws2tcpip.h>