mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Added missing include files
This commit is contained in:
parent
abec18bae0
commit
f13b3d4433
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user