From 707c017af68df24441e86b8a69831633a4106ca3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 23 Mar 2009 20:35:09 -0700 Subject: define __builtin_expect for non-gcc compilers in two more glx files Signed-off-by: Alan Coopersmith --- src/glx/x11/pixelstore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glx/x11/pixelstore.c') diff --git a/src/glx/x11/pixelstore.c b/src/glx/x11/pixelstore.c index 0eb31bf1e30..8b51b5d8b7f 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 * -- cgit v1.2.3