diff --git a/ChangeLog b/ChangeLog index aefb736e..f25fb8cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-02-12 Tomas Kalibera + + * inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h: + Support clang on Windows by including 'sched.h' header + 2023-11-01 Dirk Eddelbuettel * DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.4 diff --git a/inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h b/inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h index a859c7ba..8dbe5ae3 100644 --- a/inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +++ b/inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h @@ -12,6 +12,7 @@ // Try to come up with a portable way to yield #if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7) +#include #define EIGEN_THREAD_YIELD() sched_yield() #else #define EIGEN_THREAD_YIELD() std::this_thread::yield()