[Mesa-dev] c11: Do not include threads_win32.h if using Pthreads.

Submitted by Vinson Lee on June 4, 2014, 11:17 p.m.

Details

Message ID 1401923864-14839-1-git-send-email-vlee@freedesktop.org
State New
Headers show

Not browsing as part of any series.

Commit Message

Vinson Lee June 4, 2014, 11:17 p.m.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
 include/c11/threads.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/c11/threads.h b/include/c11/threads.h
index 45823df..e251a79 100644
--- a/include/c11/threads.h
+++ b/include/c11/threads.h
@@ -66,7 +66,7 @@  enum {
 
 /*-------------------------- functions --------------------------*/
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(HAVE_PTHREAD)
 #include "threads_win32.h"
 #elif defined(HAVE_PTHREAD)
 #include "threads_posix.h"