util: Hide timespec_passed on Windows

Windows doesn't have clockid_t.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7119>
This commit is contained in:
James Park 2020-08-07 19:57:04 -07:00 committed by Marge Bot
parent 1026e2ac0f
commit 4ca6faa933

View file

@ -312,6 +312,7 @@ timespec_after(const struct timespec *a, const struct timespec *b)
(a->tv_sec > b->tv_sec);
}
#ifndef _WIN32
/**
* Checks whether a timespec value is after the current time
*
@ -326,5 +327,6 @@ timespec_passed(clockid_t clock_domain, const struct timespec *deadline)
clock_gettime(clock_domain, &current_time);
return timespec_after(&current_time, deadline);
}
#endif
#endif /* TIMESPEC_H */