Commit 8790aef6 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-03-23 10:03:18 by simonmar]

Add GNUC3_ATTRIBUTE() macro

Submitted by: Duncan Coutts <duncan.coutts@worcester.oxford.ac.uk>
parent b39e2dc8
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $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 * (c) The GHC Team, 1998-1999
* *
...@@ -88,6 +88,12 @@ ...@@ -88,6 +88,12 @@
#define GNU_ATTRIBUTE(at) #define GNU_ATTRIBUTE(at)
#endif #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 isn't supported by all, so to define
* empty structures, please protect the defn with an * empty structures, please protect the defn with an
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment