Re: [PATCH] Fix MSVC build on cygwin
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 9, 2009, 06:48 UTC
- Message-ID
- <7v3a5t6p1f.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4ACE0388.6070706@ramsay1.demon.co.uk>
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
Show 13 quoted lines
> In the MSVC section of the Makefile, BASIC_CFLAGS is set to a > value which contains the string "-DWIN32-D_CONSOLE". This results > in a (single) malformed -Define being passed to the compiler. > At least on my cygwin installation, the msvc compiler seems to > ignore this parameter, without issuing an error or warning, and > results in the WIN32 and _CONSOLE macros being undefined. This > breaks the build. > > In order to fix the build, we simply insert a space between the > two -Define parameters, "-DWIN32" and "-D_CONSOLE", as originally > intended. > > Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Thanks; that's quite a detailed description to explain why -DFOO-DBAR is bad when -DFOO -DBAR was wanted ;-)