diff --git a/unsupported/test/cxx11_tensor_notification.cpp b/unsupported/test/cxx11_tensor_notification.cpp index 813bc4413..c946007b8 100644 --- a/unsupported/test/cxx11_tensor_notification.cpp +++ b/unsupported/test/cxx11_tensor_notification.cpp @@ -9,11 +9,20 @@ #define EIGEN_USE_THREADS -#include #include #include "main.h" #include +#if EIGEN_OS_WIN || EIGEN_OS_WIN64 +#include +void sleep(int seconds) { + Sleep(seconds*1000); +} +#else +#include +#endif + + namespace { void WaitAndAdd(Eigen::Notification* n, int* counter) {