aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 08:40:37 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 08:40:37 -0500
commit3884308da7f460ccb810a0bd7b10d38c052b2925 (patch)
tree532301fbbf7267814bbc1155f75a56e57914a96a /Eigen/src/Core/util/Macros.h
parent68631e28d49f363887a23f33baeb7b5425f0ccc4 (diff)
__attribute__((flatten)) seems to be recognized by neither clang nor icc despite these compilers defining __GNUC__.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r--Eigen/src/Core/util/Macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 7bb8cf434..5088099fb 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -142,7 +142,7 @@
#define EIGEN_ALWAYS_INLINE_ATTRIB
#endif
-#if EIGEN_GNUC_AT_LEAST(4,1)
+#if EIGEN_GNUC_AT_LEAST(4,1) && !defined(__clang__) && !defined(__intel_compiler)
#define EIGEN_FLATTEN_ATTRIB __attribute__((flatten))
#else
#define EIGEN_FLATTEN_ATTRIB