summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-03-23 10:03:18 +0000
committersimonmar <unknown>2004-03-23 10:03:18 +0000
commit8790aef6ee434e544e1ea0a23b891cb57d3f5f56 (patch)
tree95da6f036ca8af267c76909acc35fe0e98a5cfe1 /ghc
parentb39e2dc8fd9a851eb553316c0b9fce99677530bd (diff)
downloadhaskell-8790aef6ee434e544e1ea0a23b891cb57d3f5f56.tar.gz
[project @ 2004-03-23 10:03:18 by simonmar]
Add GNUC3_ATTRIBUTE() macro Submitted by: Duncan Coutts <duncan.coutts@worcester.oxford.ac.uk>
Diffstat (limited to 'ghc')
-rw-r--r--ghc/includes/Stg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ghc/includes/Stg.h b/ghc/includes/Stg.h
index caa1dc3d6e..dd41d37f2c 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