diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-10 16:26:55 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-10 16:26:55 +0200 |
commit | 9756c7fb4dfc8ab06ddb415252674e81c150e90d (patch) | |
tree | 06c069c979127368c1642a679001d48f99d0ec0f /Eigen/src/Core/util | |
parent | 93a62265dc0130d23fa5cf40f55e6dd12badfbef (diff) |
Make more use of EIGEN_HAS_C99_MATH
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 4eeb8211c..76a14b472 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -416,12 +416,10 @@ #endif // Does the compiler support C99 math? +// Let's be conservative and enable the default C++11 implementation only if we are sure it exists #if (__cplusplus >= 201103L) && (EIGEN_COMP_GNUC_STRICT || EIGEN_COMP_CLANG || EIGEN_COMP_MSVC || EIGEN_COMP_ICC) \ && (EIGEN_ARCH_i386_OR_x86_64) && (EIGEN_OS_GNULINUX || EIGEN_OS_WIN_STRICT || EIGEN_OS_MAC) || \ - (EIGEN_COMP_GNUC_STRICT || \ - (EIGEN_COMP_ICC && EIGEN_COMP_GNUC) || \ - (EIGEN_COMP_CLANG) || \ - (EIGEN_COMP_MSVC >= 1800)) + (EIGEN_COMP_GNUC_STRICT || (EIGEN_COMP_ICC && EIGEN_COMP_GNUC) || (EIGEN_COMP_CLANG) || (EIGEN_COMP_MSVC >= 1800)) #define EIGEN_HAS_C99_MATH 1 #endif |