This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] gdb_thread_db.h: #errror if no uintptr_t
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: Michael Elizabeth Chastain <mec at shout dot net>,gdb-patches at sources dot redhat dot com
- Date: Wed, 26 Feb 2003 13:44:50 -0500
- Subject: Re: [rfa] gdb_thread_db.h: #errror if no uintptr_t
- References: <200302261719.h1QHJb227567@duracef.shout.net> <20030226183912.GE910@gnat.com>
On Wed, Feb 26, 2003 at 10:39:12AM -0800, Joel Brobecker wrote:
> > +#ifndef HAVE_UINTPTR_T
> > +#error No uintptr_t available; your C library is too old.
> > +/* Inhibit further compilation errors after this error. */
> > +#define uintptr_t void *
> > +#endif
>
> Forgive my curiosity, why adding the "#define uintptr_t"? Isn't the
> compilation going to stop with the #error message anyway?
I thought so too, so I tried it. Bizarre... but he's right.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer