This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: System header #define'ing __attribute__


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]