diff options
Diffstat (limited to 'dist/Mesa/src')
-rw-r--r-- | dist/Mesa/src/mesa/glapi/glthread.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dist/Mesa/src/mesa/glapi/glthread.h b/dist/Mesa/src/mesa/glapi/glthread.h index 0958cd1b3..47b7dce27 100644 --- a/dist/Mesa/src/mesa/glapi/glthread.h +++ b/dist/Mesa/src/mesa/glapi/glthread.h @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5.1 + * Version: 6.5.2 * * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * @@ -64,6 +64,12 @@ #define GLTHREAD_H +#if defined(USE_MGL_NAMESPACE) +#define _glapi_Dispatch _mglapi_Dispatch +#endif + + + #if (defined(PTHREADS) || defined(SOLARIS_THREADS) ||\ defined(WIN32_THREADS) || defined(USE_XTHREADS) || defined(BEOS_THREADS)) \ && !defined(THREADS) @@ -292,6 +298,10 @@ _glthread_GetTSD(_glthread_TSD *); extern void _glthread_SetTSD(_glthread_TSD *, void *); +#if !defined __GNUC__ || __GNUC__ < 3 +# define __builtin_expect(x, y) x +#endif + #if defined(GLX_USE_TLS) extern __thread struct _glapi_table * _glapi_tls_Dispatch |