This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trying to build on DYNIX/ptx: 'strbuf' in cppcharset.c
- From: Gaute B Strokkenes <biggaute at uwc dot net>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 29 Sep 2003 19:30:32 +0200
- Subject: Re: Trying to build on DYNIX/ptx: 'strbuf' in cppcharset.c
- Organization: The Church of Emacs
- References: <20030925045401.GA11835@twcny.rr.com>
On 25 Sep 2003, neroden@twcny.rr.com wrote:
> Building ccpcharset.o: ../../gcc-3.4-20030827/gcc/cppcharset.c:96:
> redefinition of `struct strbuf'
>
> On this system, 'struct strbuf' is defined in sys/stropts.h,
> included by stropts.h (fairly standard) -- but this is included by
> unistd.h. This inclusion in unistd.h can be avoided by defining
> _POSIX_SOURCE, or _AES_SOURCE, _XOPEN_SOURCE.
>
> Suggestions for the correct fix? Perhaps 'strbuf' in ccpcharset.c
> should just be renamed.
All names beginning with `str' are reserved by the C standard anyway,
so strictly speaking one should not use that name in user code at
all. (I'm a bit fussy on these restrictions only apply to stuff with
external linkage, but why tempt fate anyway?)
--
Gaute Strokkenes http://www.srcf.ucam.org/~gs234/
I'LL get it!! It's probably a FEW of my ITALIAN GIRL-FRIENDS!!