[Mesa-dev] [PATCH 2/2] c11: comment out thrd_equal()

Miklós Máté mtmkls at gmail.com
Sun Mar 19 12:28:23 UTC 2017


unused, and mingw doesn't have GetThreadId()

Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
 include/c11/threads_win32.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h
index 649baa1ee8..83ecce24f3 100644
--- a/include/c11/threads_win32.h
+++ b/include/c11/threads_win32.h
@@ -540,12 +540,14 @@ thrd_detach(thrd_t thr)
     return thrd_success;
 }
 
+#if 0
 // 7.25.5.4
 static inline int
 thrd_equal(thrd_t thr0, thrd_t thr1)
 {
     return GetThreadId(thr0) == GetThreadId(thr1);
 }
+#endif
 
 // 7.25.5.5
 static inline void
-- 
2.11.0



More information about the mesa-dev mailing list