From: Matthieu Herrb Date: Sat, 13 Sep 2008 17:07:28 +0000 (+0200) Subject: __builtin_expect is a gcc 3.x feature. define it out for gcc 2.95. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=297a9606ead4400a60a1b5106327c226db4b3474;p=mesa.git __builtin_expect is a gcc 3.x feature. define it out for gcc 2.95. Patch suggested by miod@. Thanks. --- diff --git a/src/mesa/glapi/glthread.h b/src/mesa/glapi/glthread.h index e2765cebb10..27ccd2e2e7b 100644 --- a/src/mesa/glapi/glthread.h +++ b/src/mesa/glapi/glthread.h @@ -298,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