bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_FUNC_ALLOCA shouldn't define prototype


From: Joerg Sonnenberger
Subject: Re: AC_FUNC_ALLOCA shouldn't define prototype
Date: Thu, 5 Aug 2010 15:34:55 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Aug 05, 2010 at 01:26:40PM +0200, Bruno Haible wrote:
> So, I don't understand how you see a "conflict".

The conflicting declarations are a result of the default namespace
containing _NETBSD_SOURCE if no (other) standard compliance macro is
set.

> The test code in
> AC_FUNC_ALLOCA does not include <stdlib.h>, only <stddef.h>; how can that
> clash? And after configure has run, the Autoconf manual recommends to
> declare alloca as follows:

This is not what AC_FUNC_ALLOCA is using.

> But seeing that no platform nowadays assumes a return type of 'char *' for
> alloca, it would be possible to change the prototype anyway:

Can you also please make it a proper function prototype? E.g.
void *alloca(size_t)? I don't care much about it then.

Joerg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]