[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #1768: Wrong macro added to chicken-config.h in Makefile.cross-linux
From: |
Chicken Trac |
Subject: |
Re: #1768: Wrong macro added to chicken-config.h in Makefile.cross-linux-mingw |
Date: |
Sun, 27 Jun 2021 09:13:40 -0000 |
#1768: Wrong macro added to chicken-config.h in Makefile.cross-linux-mingw
-------------------------------------+---------------------
Reporter: lattay | Owner: (none)
Type: defect | Status: new
Priority: minor | Milestone: someday
Component: build system | Version: 5.2.0
Resolution: | Keywords:
Estimated difficulty: trivial |
-------------------------------------+---------------------
Comment (by lattay):
Just to be clear, the reason this is the right thing is the Win32
environment provides alloca in `malloc.h` which is included before the
attempt to include `alloca.h`.
Replying to [ticket:1768 lattay]:
>
> Hi,
> I noticed that there is a mistake in Makefile.cross-linux-mingw.
> In the process of creating chicken-config.h, this Makefile declares
HAVE_ALLOCA_H when it should declare HAVE_ALLOCA only.
> Here is a "patch":
>
> {{{
> diff --git a/Makefile.cross-linux-mingw b/Makefile.cross-linux-mingw
> index 929e140..6d6a690 100644
> --- a/Makefile.cross-linux-mingw
> +++ b/Makefile.cross-linux-mingw
> @@ -105,7 +105,7 @@ chicken-config.h: chicken-defaults.h
> echo "#define HAVE_UNISTD_H 1" >>$@
> echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@
> echo "#define STDC_HEADERS 1" >>$@
> - echo "#define HAVE_ALLOCA_H 1" >>$@
> + echo "#define HAVE_ALLOCA 1" >>$@
> echo "#define HAVE_DIRECT_H 1" >>$@
> echo "#define HAVE_ERRNO_H 1" >>$@
> echo "#define HAVE_LOADLIBRARY 1" >>$@
> }}}
--
Ticket URL: <https://bugs.call-cc.org/ticket/1768#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.