Fix test helper function for mingw builds

Change-Id: Ic24b3ba89bf03bfbc829a78d2cb8f820885ada7e
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker
2017-05-25 15:49:47 -07:00
committed by Xiaodong Liu
parent 4f2d148ae5
commit c68e15dc53

View File

@@ -35,7 +35,7 @@ extern "C" {
#endif #endif
// Use sys/time.h functions for time // Use sys/time.h functions for time
#ifdef __unix__ #if defined (__unix__) || (__APPLE__) || (__MINGW32__)
#include <sys/time.h> #include <sys/time.h>
#endif #endif
@@ -44,7 +44,7 @@ struct perf{
}; };
#ifdef __unix__ #if defined (__unix__) || (__APPLE__) || (__MINGW32__)
inline int perf_start(struct perf *p) inline int perf_start(struct perf *p)
{ {
return gettimeofday(&(p->tv), 0); return gettimeofday(&(p->tv), 0);