summaryrefslogtreecommitdiff
path: root/winbuild
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-10 14:56:11 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-11 11:57:00 +0200
commitbeb08481d01a07a8b10938b1078a5e298b1c2912 (patch)
tree4c364e4fc65c73822597fbecedf333014dea2be0 /winbuild
parentc5e87fdb7a60c1c4ef158a876e730b25be7a0894 (diff)
downloadcurl-beb08481d01a07a8b10938b1078a5e298b1c2912.tar.gz
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 'winbuild')
-rw-r--r--winbuild/MakefileBuild.vc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc
index eb28efefd..1d8210b3d 100644
--- a/winbuild/MakefileBuild.vc
+++ b/winbuild/MakefileBuild.vc
@@ -60,7 +60,7 @@ CFLAGS = /I. /I../lib /I../include /nologo /W3 /GX /DWIN32 /YX /FD /c /DBUIL
!ELSE
CC_NODEBUG = $(CC) /O2 /DNDEBUG
CC_DEBUG = $(CC) /Od /D_DEBUG /RTC1 /Z7 /LDd /W3
-CFLAGS = /I. /I ../lib /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL /DWIN32_LEAN_AND_MEAN
+CFLAGS = /I. /I ../lib /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL
!ENDIF
LFLAGS = /nologo /machine:$(MACHINE)