Added missing include files

This commit is contained in:
Benoit Steiner 2015-05-28 07:57:28 -07:00
parent abec18bae0
commit f13b3d4433
2 changed files with 9 additions and 1 deletions

View File

@ -34,6 +34,14 @@
#include <random>
#endif
#ifdef _WIN32
#include <winbase.h>
#elif defined(__APPLE__)
#include <mach/mach_time.h>
#else
#include <time.h>
#endif
#ifdef EIGEN_USE_THREADS
#include <condition_variable>
#include <deque>

View File

@ -196,7 +196,7 @@ int get_random_seed() {
GetSystemTime(&st);
return st.wSecond + 1000 * st.wMilliseconds;
#elif defined __APPLE__
return mach_absolute_time();
return static_cast<int>(mach_absolute_time());
#else
timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);