diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h old mode 100644 new mode 100755 index 9d0e7c266..dad0c1d56 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -16,6 +16,10 @@ #include #endif +#if EIGEN_COMP_ICC>=1600 && __cplusplus >= 201103L +#include +#endif + namespace Eigen { namespace internal { @@ -29,7 +33,7 @@ namespace internal { // Only recent versions of ICC complain about using ptrdiff_t to hold pointers, // and older versions do not provide *intptr_t types. -#if EIGEN_COMP_ICC>=1600 +#if EIGEN_COMP_ICC>=1600 && __cplusplus >= 201103L typedef std::intptr_t IntPtr; typedef std::uintptr_t UIntPtr; #else