mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-16 13:45:58 +08:00
Fix compilation with old icc
This commit is contained in:
parent
2c1b56f4c1
commit
d79eee05ef
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user