mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fixed compilation error on windows
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user