mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 07:14:12 +08:00
Fix compilation with recent updates of icc 2016
This commit is contained in:
parent
5b3a6f51d3
commit
8ec4d6480d
6
Eigen/src/Core/util/Meta.h
Normal file → Executable file
6
Eigen/src/Core/util/Meta.h
Normal file → Executable file
@ -16,6 +16,10 @@
|
|||||||
#include <math_constants.h>
|
#include <math_constants.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if EIGEN_COMP_ICC>=1600 && __cplusplus >= 201103L
|
||||||
|
#include <cstdint>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Eigen {
|
namespace Eigen {
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
@ -29,7 +33,7 @@ namespace internal {
|
|||||||
|
|
||||||
// Only recent versions of ICC complain about using ptrdiff_t to hold pointers,
|
// Only recent versions of ICC complain about using ptrdiff_t to hold pointers,
|
||||||
// and older versions do not provide *intptr_t types.
|
// 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::intptr_t IntPtr;
|
||||||
typedef std::uintptr_t UIntPtr;
|
typedef std::uintptr_t UIntPtr;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user