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
doesn't.

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

Joerg

Reply via email to