From 8790aef6ee434e544e1ea0a23b891cb57d3f5f56 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 23 Mar 2004 10:03:18 +0000 Subject: [PATCH] [project @ 2004-03-23 10:03:18 by simonmar] Add GNUC3_ATTRIBUTE() macro Submitted by: Duncan Coutts --- ghc/includes/Stg.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.10.4