aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-20 03:04:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-20 03:04:00 +0000
commitef2391fedf31b818530d286fe896db9a50aeb390 (patch)
treef738129ffeb5039c7856ae7c90eec352440b5a73
parent518c7684e1f17d8e15d648a924238b687bc441a9 (diff)
downloadpaludis-ef2391fedf31b818530d286fe896db9a50aeb390.tar.gz
paludis-ef2391fedf31b818530d286fe896db9a50aeb390.tar.xz
Partial attribute support for icc.
-rw-r--r--paludis/attributes.hh12
1 files changed, 9 insertions, 3 deletions
diff --git a/paludis/attributes.hh b/paludis/attributes.hh
index b462767..074d61a 100644
--- a/paludis/attributes.hh
+++ b/paludis/attributes.hh
@@ -25,8 +25,8 @@
*/
/** \def PALUDIS_ATTRIBUTE
- * If we're using GCC, expands to __attribute__, otherwise discards its
- * arguments.
+ * If we're using a recent GCC or ICC, expands to __attribute__, otherwise
+ * discards its arguments.
*/
#ifdef __GNUC__
@@ -36,7 +36,13 @@
# define PALUDIS_ATTRIBUTE(x)
# endif
#else
-# define PALUDIS_ATTRIBUTE(x)
+# ifdef __ICC
+# define PALUDIS_ATTRIBUTE(x) __attribute__(x)
+# define nothrow
+# define deprecated
+# else
+# define PALUDIS_ATTRIBUTE(x)
+# endif
#endif
#endif