From: Jay Satiro Date: Wed, 22 May 2024 06:46:13 +0000 (-0400) Subject: winbuild: remove outdated WIN32 defines X-Git-Tag: curl-8_9_0~407 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=795515c773792559b88b79f176bbab218927ab0d;p=thirdparty%2Fcurl.git winbuild: remove outdated WIN32 defines - Remove all instances in the makefile of compiler option /DWIN32. This is a follow-up to e9a7d4a1 which replaced all defined(WIN32) checks with defined(_WIN32) in the codebase, since only the latter is automatically defined by all compilers for Windows builds. Bug: https://github.com/curl/curl/pull/13739#issuecomment-2123937859 Reported-by: Viktor Szakats Closes https://github.com/curl/curl/pull/13742 --- diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index 0d0a51623c..6b8c6ceb10 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -48,11 +48,11 @@ CC = cl.exe !IF "$(VC)"=="6" CC_NODEBUG = $(CC) /O2 /DNDEBUG CC_DEBUG = $(CC) /Od /Gm /Zi /D_DEBUG /GZ -CFLAGS = /I. /I../lib /I../include /nologo /W4 /GX /DWIN32 /YX /FD /c /DBUILDING_LIBCURL +CFLAGS = /I. /I../lib /I../include /nologo /W4 /GX /YX /FD /c /DBUILDING_LIBCURL !ELSE CC_NODEBUG = $(CC) /O2 /DNDEBUG CC_DEBUG = $(CC) /Od /D_DEBUG /RTC1 /Z7 /LDd -CFLAGS = /I. /I ../lib /I../include /nologo /W4 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL +CFLAGS = /I. /I ../lib /I../include /nologo /W4 /EHsc /FD /c /DBUILDING_LIBCURL !ENDIF LFLAGS = /nologo /machine:$(MACHINE) @@ -90,7 +90,7 @@ PDB_NAME_DLL_DEBUG = $(BASE_NAME_DEBUG).pdb # CURL Command section PROGRAM_NAME = curl.exe -CURL_CFLAGS = /I../lib /I../include /nologo /W4 /EHsc /DWIN32 /FD /c +CURL_CFLAGS = /I../lib /I../include /nologo /W4 /EHsc /FD /c CURL_LFLAGS = /out:$(DIRDIST)\bin\$(PROGRAM_NAME) /subsystem:console $(LFLAGS) CURL_RESFLAGS = /i../include