mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
fixed WIN32_THREADS error
This commit is contained in:
parent
af763d5e43
commit
fa937f611a
2 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: glthread.c,v 1.5 2000/02/10 21:54:06 brianp Exp $ */
|
||||
/* $Id: glthread.c,v 1.6 2000/02/11 21:38:33 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -189,7 +189,7 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr)
|
|||
* Be sure that you compile using the Multithreaded runtime, otherwise
|
||||
* bad things will happen.
|
||||
*/
|
||||
#ifdef WIN32
|
||||
#ifdef WIN32_THREADS
|
||||
|
||||
unsigned long
|
||||
_glthread_GetID(void)
|
||||
|
|
@ -239,7 +239,7 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr)
|
|||
}
|
||||
}
|
||||
|
||||
#endif /* WIN32 */
|
||||
#endif /* WIN32_THREADS */
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: glthread.h,v 1.4 2000/02/10 21:54:06 brianp Exp $ */
|
||||
/* $Id: glthread.h,v 1.5 2000/02/11 21:38:33 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -146,7 +146,7 @@ typedef mutex_t _glthread_Mutex;
|
|||
* IMPORTANT: Link with multithreaded runtime library when THREADS are
|
||||
* used!
|
||||
*/
|
||||
#ifdef WIN32
|
||||
#ifdef WIN32_THREADS
|
||||
#include <windows.h>
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -164,7 +164,7 @@ typedef CRITICAL_SECTION _glthread_Mutex;
|
|||
#define _glthread_LOCK_MUTEX(name) (void) name
|
||||
#define _glthread_UNLOCK_MUTEX(name) (void) name
|
||||
|
||||
#endif /* WIN32 */
|
||||
#endif /* WIN32_THREADS */
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue