cpplib: s/ALIGN/_ALIGN
Michael Meissner
meissner@cygnus.com
Sun Feb 4 19:50:00 GMT 2001
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
More information about the Gcc-patches
mailing list