From: simonmar Date: Tue, 23 Mar 2004 10:03:18 +0000 (+0000) Subject: [project @ 2004-03-23 10:03:18 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1943 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8790aef6ee434e544e1ea0a23b891cb57d3f5f56;p=ghc-hetmet.git [project @ 2004-03-23 10:03:18 by simonmar] Add GNUC3_ATTRIBUTE() macro Submitted by: Duncan Coutts --- diff --git a/ghc/includes/Stg.h b/ghc/includes/Stg.h index caa1dc3..dd41d37 100644 --- a/ghc/includes/Stg.h +++ b/ghc/includes/Stg.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stg.h,v 1.61 2004/03/08 10:27:22 stolz Exp $ + * $Id: Stg.h,v 1.62 2004/03/23 10:03:18 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -88,6 +88,12 @@ #define GNU_ATTRIBUTE(at) #endif +#if __GNUC__ >= 3 +#define GNUC3_ATTRIBUTE(at) __attribute__((at)) +#else +#define GNUC3_ATTRIBUTE(at) +#endif + /* * Empty structures isn't supported by all, so to define * empty structures, please protect the defn with an