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
Neil Booth writes:
> > /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?
Not really: the definition is protected by _OSF_SOURCE, which is on by
default and enables all sorts of Tru64 UNIX additions to the various
standards (ISO C, POSIX.1, ...), so it's probably not really feasible to
disable it.
> I like it, and am reluctant to change all the source now.
I feared so, and couldn't suggest a good alternative.
Rainer