mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Fixed compilation error on windows
This commit is contained in:
parent
0968e925a0
commit
a86c9f037b
@ -9,11 +9,20 @@
|
|||||||
|
|
||||||
#define EIGEN_USE_THREADS
|
#define EIGEN_USE_THREADS
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include <Eigen/CXX11/Tensor>
|
#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 {
|
namespace {
|
||||||
|
|
||||||
void WaitAndAdd(Eigen::Notification* n, int* counter) {
|
void WaitAndAdd(Eigen::Notification* n, int* counter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user