[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Serious problem with Autoconf on RedHat 7
From: |
Alexandre Oliva |
Subject: |
Re: [PATCH] Serious problem with Autoconf on RedHat 7 |
Date: |
03 Oct 2000 11:57:30 -0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
On Oct 3, 2000, Bernard Dautrevaux <address@hidden> wrote:
> Anyway, this test should be a standard C++ test, defining
> CXX_NEEDS_EXIT_DECL in config.h, so that I can test it in my own programs;
> for now I've always assumed "exit()" to be available after #including
> <stdlib.h> and if you're right I w'll get in trouble some day :-)
Well, maybe I'm just being too paranoid. The C++ Standard requires
`#include <stdlib.h>' to work just like in C. But what if some OS
didn't provide a declaration of exit(int) in stdlib.h, and the C++
compiler happens to just use the stdlib.h offered by the OS?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me