Fixed compilation error on windows

This commit is contained in:
Benoit Steiner 2016-03-24 18:54:31 -07:00
parent 0968e925a0
commit a86c9f037b

View File

@ -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) {