aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:24:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:24:08 +0000
commitda8868f30605dca38a44986a7905a18978489144 (patch)
tree40171c3d4caf509ee75414cabd357d7e830ae04e
parent6b194a1f6a9f227bf4d8c741c84d36b05bba4236 (diff)
downloadpaludis-da8868f30605dca38a44986a7905a18978489144.tar.gz
paludis-da8868f30605dca38a44986a7905a18978489144.tar.xz
icc doesn't do attributes properly
-rw-r--r--paludis/util/attributes.hh.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/paludis/util/attributes.hh.in b/paludis/util/attributes.hh.in
index 468cb79..8b2aba2 100644
--- a/paludis/util/attributes.hh.in
+++ b/paludis/util/attributes.hh.in
@@ -61,11 +61,15 @@
*/
#if (defined(__GNUC__) || defined(DOXYGEN))
-# if ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || defined(DOXYGEN))
-# define PALUDIS_ATTRIBUTE(x) __attribute__(x)
-# define PALUDIS_CAN_USE_ATTRIBUTE 1
-# else
+# if defined(__ICC)
# define PALUDIS_ATTRIBUTE(x)
+# else
+# if ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || defined(DOXYGEN))
+# define PALUDIS_ATTRIBUTE(x) __attribute__(x)
+# define PALUDIS_CAN_USE_ATTRIBUTE 1
+# else
+# define PALUDIS_ATTRIBUTE(x)
+# endif
# endif
#else
# define PALUDIS_ATTRIBUTE(x)