This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Use gnulib's stdint.h.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org, bug-gnulib at gnu dot org
- Date: Fri, 4 Jul 2008 10:57:54 -0700
- Subject: Re: [RFC] Use gnulib's stdint.h.
- References: <20080605184041.GA25085@caradoc.them.org> <20080626155155.GA27012@caradoc.them.org> <20080627185907.GA11664@adacore.com> <20080627191314.GA19538@caradoc.them.org> <20080627193139.GD3946@adacore.com>
Okidoke,
Here is a small status on this thread... Generally speaking, I expect
all issues to be officially resolved soon.
On Fri, Jun 27, 2008 at 03:31:39PM -0400, Joel Brobecker wrote:
> > Boo. And if we change libdecnumber to use gnulib's version we'll
> > undoubtedly break gcc. If we provide gstdint.h in the gdb directory
> > which redirects to <stdint.h>, will libdecnumber pick it up at this
> > point?
>
> That's pretty ingenious. Indeed, that works, since the include order
> when compiling GDB files is the gdb directory, ahead of all other
> dependencies. I'll send a patch shortly after having tested it.
Patch posted a few days ago, and waiting for comments. I'll commit
in a few days if there is no objection.
> > > #if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS
> > >
> > > /* Get WCHAR_MIN, WCHAR_MAX. */
> > > # if ! (defined WCHAR_MIN && defined WCHAR_MAX)
> > > # include <wchar.h>
> > > # endif
> > >
> > > #endif
Thanks to Ian's help, we removed the check against ctype.h, so this
issue should now be fixed.
--
Joel