Fixed some compilation error triggered by the tensor code with msvc 2008

This commit is contained in:
Benoit Steiner 2015-12-16 20:45:58 -08:00
parent 55aef139ff
commit 2ca55a3ae4

View File

@ -28,14 +28,22 @@
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#ifdef _WIN32
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h> #include <stdint.h>
#endif
#if __cplusplus > 199711 #if __cplusplus > 199711
#include <random> #include <random>
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#include <winbase.h> #include <windows.h>
#elif defined(__APPLE__) #elif defined(__APPLE__)
#include <mach/mach_time.h> #include <mach/mach_time.h>
#else #else