From f13b3d4433bca0670fd57e41808d331b1ddfb1d8 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 28 May 2015 07:57:28 -0700 Subject: [PATCH] Added missing include files --- unsupported/Eigen/CXX11/Tensor | 8 ++++++++ unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/Tensor b/unsupported/Eigen/CXX11/Tensor index 05c5127a1..54d3cc18b 100644 --- a/unsupported/Eigen/CXX11/Tensor +++ b/unsupported/Eigen/CXX11/Tensor @@ -34,6 +34,14 @@ #include #endif +#ifdef _WIN32 +#include +#elif defined(__APPLE__) +#include +#else +#include +#endif + #ifdef EIGEN_USE_THREADS #include #include diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index da9763a3d..1b031b7a1 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -196,7 +196,7 @@ int get_random_seed() { GetSystemTime(&st); return st.wSecond + 1000 * st.wMilliseconds; #elif defined __APPLE__ - return mach_absolute_time(); + return static_cast(mach_absolute_time()); #else timespec ts; clock_gettime(CLOCK_REALTIME, &ts);