From 8bfeae0d8e9d3ff237f4b9b96cfad038c74fbd09 Mon Sep 17 00:00:00 2001 From: Tomas Kalibera Date: Mon, 12 Feb 2024 13:41:49 +0100 Subject: [PATCH 1/2] Tweak to build with clang on Windows. --- .../include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h | 1 + 1 file changed, 1 insertion(+) 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() From 0cd99a83ad1ee697687da3f21835b76c89c8afd5 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Mon, 12 Feb 2024 07:05:06 -0600 Subject: [PATCH 2/2] Update ChangeLog --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) 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