mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
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:
parent
1026e2ac0f
commit
4ca6faa933
1 changed files with 2 additions and 0 deletions
|
|
@ -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, ¤t_time);
|
||||
return timespec_after(¤t_time, deadline);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* TIMESPEC_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue