summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glthread.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-03-07 21:50:41 +0000
committerBrian Paul <[email protected]>2002-03-07 21:50:41 +0000
commit5104b4d9df28f5bcb879b16bf5cef4ab0addda85 (patch)
tree13b6cd4144ea305718fb5f6a19f43044f26c0159 /src/mesa/glapi/glthread.h
parent0b2fa873c6da02f169a76d74d3bedd91236f8e28 (diff)
minor patches from David Dawes
Diffstat (limited to 'src/mesa/glapi/glthread.h')
-rw-r--r--src/mesa/glapi/glthread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/glapi/glthread.h b/src/mesa/glapi/glthread.h
index 026578051ee..1b2a648da81 100644
--- a/src/mesa/glapi/glthread.h
+++ b/src/mesa/glapi/glthread.h
@@ -1,4 +1,4 @@
-/* $Id: glthread.h,v 1.10 2001/11/30 22:11:45 kschultz Exp $ */
+/* $Id: glthread.h,v 1.11 2002/03/07 21:50:41 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -186,8 +186,13 @@ typedef xthread_t _glthread_Thread;
typedef xmutex_rec _glthread_Mutex;
+#ifdef XMUTEX_INITIALIZER
#define _glthread_DECLARE_STATIC_MUTEX(name) \
static _glthread_Mutex name = XMUTEX_INITIALIZER
+#else
+#define _glthread_DECLARE_STATIC_MUTEX(name) \
+ static _glthread_Mutex name
+#endif
#define _glthread_INIT_MUTEX(name) \
xmutex_init(&(name))