mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix compilation with recent updates of icc 2016
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user