[project @ 2004-03-23 10:03:18 by simonmar]
authorsimonmar <unknown>
Tue, 23 Mar 2004 10:03:18 +0000 (10:03 +0000)
committersimonmar <unknown>
Tue, 23 Mar 2004 10:03:18 +0000 (10:03 +0000)
Add GNUC3_ATTRIBUTE() macro

Submitted by: Duncan Coutts <duncan.coutts@worcester.oxford.ac.uk>

ghc/includes/Stg.h

index caa1dc3..dd41d37 100644 (file)
@@ -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
  *
 #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