bug #871: fix compilation on ARM/Neon regarding __has_builtin usage

This commit is contained in:
Gael Guennebaud
2014-09-01 10:52:58 +02:00
parent 01f3ca3e8d
commit 0369db12af
2 changed files with 8 additions and 1 deletions

View File

@@ -107,6 +107,13 @@
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE std::ptrdiff_t
#endif
// Cross compiler wrapper around LLVM's __has_builtin
#ifdef __has_builtin
# define EIGEN_HAS_BUILTIN(x) __has_builtin(x)
#else
# define EIGEN_HAS_BUILTIN(x) 0
#endif
// A Clang feature extension to determine compiler features.
// We use it to determine 'cxx_rvalue_references'
#ifndef __has_feature