From beb08481d01a07a8b10938b1078a5e298b1c2912 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 10 Jul 2017 14:56:11 +0200 Subject: 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 --- include/curl/system.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') 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 # include # include -- cgit v1.2.3