mirror of
https://github.com/intel/isa-l.git
synced 2025-10-29 12:18:00 +01:00
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:
committed by
Xiaodong Liu
parent
4f2d148ae5
commit
c68e15dc53
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user