This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: WIN-18: remove exception.cc dependancy on libstdc++-v3 headers
- From: Tom Tromey <tromey at redhat dot com>
- To: Adam Megacz <patches at lists dot megacz dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 11 Feb 2002 15:42:45 -0700
- Subject: Re: WIN-18: remove exception.cc dependancy on libstdc++-v3 headers
- References: <863d08trsl.fsf@megacz.com>
- Reply-to: tromey at redhat dot com
>>>>> "Adam" == Adam Megacz <patches@lists.megacz.com> writes:
Adam> 2) Hack a std::abort() before #including unwind-pe.h, since unwind-pe
Adam> assumes that if you're compiling with a C++ compiler, you
Adam> automatically must have libstdc++-v3 available (faulty assumption,
Adam> IMHO).
Adam> Ok to commit?
Please make a couple changes first:
1. Add a comment before the `namespace std' explaining why we need this.
This is the sort of oddity we must document in the source.
Adam> +namespace std {
Adam> + void
Adam> + abort()
Adam> + {
Adam> + ::abort();
Adam> + }
Adam> +}
2. I think this should be formatted:
namespace std
{
void abort ()
{
::abort ();
}
}
Thanks,
Tom