This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: System header #define'ing __attribute__
- From: Phil Edwards <phil at jaj dot com>
- To: Jeff Epler <jepler at unpythonic dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 1 Apr 2003 19:46:08 -0500
- Subject: Re: System header #define'ing __attribute__
- References: <20030401235338.GB30045@unpythonic.net>
On Tue, Apr 01, 2003 at 05:53:38PM -0600, Jeff Epler wrote:
> #if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 5
> #define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */
>
> now, of course, this worked great for any gcc 2.x version, but not for
> any gcc 3.x version.
Unless I'm parsing that #if incorrectly, it will magically begin working
once GCC 3.5 is released.
I can think of workarounds, but none that would help build libgcc.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams