This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: s/ALIGN/_ALIGN
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: cpplib: s/ALIGN/_ALIGN
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Sun, 4 Feb 2001 22:50:33 -0500
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010203174848.C6712@daikokuya.demon.co.uk>
On Sat, Feb 03, 2001 at 05:48:49PM +0000, Neil Booth wrote:
> OpenBSD and I believe FreeBSD define a macro ALIGN in param.h.
> Unfortunately, it was also a macro used by cpplib.
>
> Neil.
>
> * cpphash.h: Rename ALIGN _ALIGN.
> * cpplex.c (new_chunk): Update.
And this will break on some other system that defines _ALIGN for its own
purposes, since _[A-Z]* is in the implementor's namespace (both compiler and
library/include files). Please pick some other name that is in the normal
namespace.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482