Module: Mesa
Branch: master
Commit: 4ca6faa933abb01516ada903335cd66024859eeb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ca6faa933abb01516ada903335cd66024859eeb

Author: James Park <[email protected]>
Date:   Fri Aug  7 19:57:04 2020 -0700

util: Hide timespec_passed on Windows

Windows doesn't have clockid_t.

Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7119>

---

 src/util/timespec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/timespec.h b/src/util/timespec.h
index cbfcc730f89..465adec892c 100644
--- a/src/util/timespec.h
+++ b/src/util/timespec.h
@@ -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 */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to