mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Fixed compilation error on windows
This commit is contained in:
parent
0968e925a0
commit
a86c9f037b
@ -9,11 +9,20 @@
|
||||
|
||||
#define EIGEN_USE_THREADS
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include "main.h"
|
||||
#include <Eigen/CXX11/Tensor>
|
||||
|
||||
#if EIGEN_OS_WIN || EIGEN_OS_WIN64
|
||||
#include <windows.h>
|
||||
void sleep(int seconds) {
|
||||
Sleep(seconds*1000);
|
||||
}
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
void WaitAndAdd(Eigen::Notification* n, int* counter) {
|
||||
|
Loading…
Reference in New Issue
Block a user