On Jan 18, 2001, Akim Demaille <[EMAIL PROTECTED]> wrote:
>>>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
Lars> I noticed that when I moved '' first, the first exit(42) test
Lars> didn't include <stdlib.h> - is that right?
> Yes, it does, but you didn't see it because it didn't fail. The test
> goes in two steps:
> configure:3338: /home/larsa/src/Coin/cfg/m4/msvccc -c -g conftest.cc >&5
> configure(3331) : error C2065: 'exit' : undeclared identifier
Hmm... I didn't expect it to fail in this case.
Well, maybe we could just go without the test that doesn't include
stdlib.h when the declaration being tested is empty. That would
probably work, as long as all tests do include stdlib.h.
Hmm, no. I think the second test string should be the ``declaration'':
#include <stdlib.h>
This would test whether it is safe to #include it twice. The
assumption being that any compiler that is picky enough to require a
declaration of exit() will have a stdlib.h that can be #included
twice.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me