[Top][All Lists]

[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 23:23:10 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Aug 05, 2010 at 09:38:07PM +0200, Bruno Haible wrote:
> Joerg Sonnenberger 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.
> Still, I don't see how you can get a conflict with <stdlib.h> if the test
> code does not include <stdlib.h>, and your report is very vague.

The problem is that people copy this. Both the version in the
documentation and in the macro. Defining the prototype manually might be
good enough for the configure test, but it is a lot worse than using a
potential compiler builtin. As such, the use of the correct system
header should be strongly encouraged. At least the documentation

With the prototype change, at least the most obvious fallout doesn't


reply via email to

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