This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: uchar redefinition warning from cpphash.h
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 23:01:24 +0100
- Subject: Re: uchar redefinition warning from cpphash.h
- References: <15640.58134.95906.232554@xayide.TechFak.Uni-Bielefeld.DE>
Rainer Orth wrote:-
> Neil,
>
> I just noticed that this patch
>
> 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
>
> * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
> * cppfiles.c (read_include_file): Similarly.
> * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
> uxstrdup ustrchr, ufputs): Similarly.
>
> causes redefinition warnings on Tru64 UNIX V5.1:
>
> /vol/gnu/src/gcc/gcc-dist/gcc/cpphash.h:32: warning: redefinition of `uchar'
> include/sys/types.h:585: warning: `uchar' previously declared here
>
> I suppose the same might happen on various BSD systems as well, so it may
> be appropriate to choose a different name here?
Great 8-(.
Is there any macro that is defined that tells us that uchar is a typedef?
I like it, and am reluctant to change all the source now.
Neil.