This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH (libstdc++-v3): obscure portability issue
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: rittle at labs dot mot dot com
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Jan 2005 22:32:42 -0800
- Subject: Re: PATCH (libstdc++-v3): obscure portability issue
- References: <200501192157.j0JLvWnD028145@latour.waar.labs.mot.com>
On Wed, Jan 19, 2005 at 03:57:32PM -0600, Loren James Rittle wrote:
> This strange macro exists on various versions of FreeBSD (and perhaps
> other strains of BSD):
>
> /usr/include/sys/cdefs.h:#define __used __attribute__((__used__))
You should add this to the BADNAMES file (the list of names that should
be avoided due to conflicts of this type). It is in
libstdc++-v3/docs/html/17_intro/BADNAMES
You might also want to look to see if any other names should be added
there because BSD uses them.