mirror of
https://github.com/intel/isa-l.git
synced 2025-02-07 18:02:25 +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:
parent
4f2d148ae5
commit
c68e15dc53
@ -35,7 +35,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// Use sys/time.h functions for time
|
||||
#ifdef __unix__
|
||||
#if defined (__unix__) || (__APPLE__) || (__MINGW32__)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
@ -44,7 +44,7 @@ struct perf{
|
||||
};
|
||||
|
||||
|
||||
#ifdef __unix__
|
||||
#if defined (__unix__) || (__APPLE__) || (__MINGW32__)
|
||||
inline int perf_start(struct perf *p)
|
||||
{
|
||||
return gettimeofday(&(p->tv), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user