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 [EMAIL PROTECTED]

Regards,
Pavel Roskin


Reply via email to