Fix compilation with old icc

This commit is contained in:
Gael Guennebaud 2016-05-31 17:13:51 +02:00
parent 2c1b56f4c1
commit d79eee05ef

View File

@ -27,9 +27,11 @@ namespace internal {
* we however don't want to add a dependency to Boost. * we however don't want to add a dependency to Boost.
*/ */
#if EIGEN_COMP_ICC // Only recent versions of ICC complain about using ptrdiff_t to hold pointers,
typedef intptr_t IntPtr; // and older versions do not provide *intptr_t types.
typedef uintptr_t UIntPtr; #if EIGEN_COMP_ICC>=1600
typedef std::intptr_t IntPtr;
typedef std::uintptr_t UIntPtr;
#else #else
typedef std::ptrdiff_t IntPtr; typedef std::ptrdiff_t IntPtr;
typedef std::size_t UIntPtr; typedef std::size_t UIntPtr;