autoconf
[Top][All Lists]
Advanced

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

Re: Problem with exit() and new version of gcc.


From: Pavel Roskin
Subject: Re: Problem with exit() and new version of gcc.
Date: Mon, 18 Dec 2000 01:13:07 -0500 (EST)

Hello, Assar!

> I think this problem has already been discussed on the mailing list.
> We should in my opinion just remove the declaration of exit for C++,

Maybe it's better to use "return" for C++. I remember that somebody
mentioned problems with "return" in old C compilers. This should be
irrelevant to C++.

> -#ifdef __cplusplus
> -extern "C" void exit (int);
> -#endif

It should be:

#ifdef __cplusplus
#undef exit
#define exit(x) return (x)
#endif

The full patch goes to address@hidden

Regards,
Pavel Roskin




reply via email to

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