summaryrefslogtreecommitdiff
path: root/src/glx/x11/pixelstore.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-03-23 20:35:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-03-25 11:07:31 -0700
commit707c017af68df24441e86b8a69831633a4106ca3 (patch)
treedebe9bc7c78d7f215930d8fbedde876dd87e9a94 /src/glx/x11/pixelstore.c
parentad11107206ff4954366d77f334431b637ee256fa (diff)
define __builtin_expect for non-gcc compilers in two more glx files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'src/glx/x11/pixelstore.c')
-rw-r--r--src/glx/x11/pixelstore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/x11/pixelstore.c b/src/glx/x11/pixelstore.c
index 0eb31bf1e3..8b51b5d8b7 100644
--- a/src/glx/x11/pixelstore.c
+++ b/src/glx/x11/pixelstore.c
@@ -31,6 +31,10 @@
#include "glxclient.h"
#include "indirect.h"
+#if !defined __GNUC__ || __GNUC__ < 3
+# define __builtin_expect(x, y) x
+#endif
+
/**
* Send glPixelStore command to the server
*