projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44557bf
)
__builtin_expect is a gcc 3.x feature. define it out for gcc 2.95.
author
Matthieu Herrb
<matthieu.herrb@laas.fr>
Sat, 13 Sep 2008 17:07:28 +0000
(19:07 +0200)
committer
Brian
<brianp@vmware.com>
Sun, 11 Jan 2009 23:44:36 +0000
(16:44 -0700)
Patch suggested by miod@. Thanks.
src/mesa/glapi/glthread.h
patch
|
blob
|
history
diff --git
a/src/mesa/glapi/glthread.h
b/src/mesa/glapi/glthread.h
index e2765cebb1055403aab20e3b4345f811c74dd0f6..27ccd2e2e7b7e6a31be61e994aae74ff56793e6f 100644
(file)
--- 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