define __builtin_expect for non-gcc compilers in two more glx files
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 24 Mar 2009 03:35:09 +0000 (20:35 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Wed, 25 Mar 2009 18:07:31 +0000 (11:07 -0700)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
src/glx/x11/indirect_vertex_program.c
src/glx/x11/pixelstore.c

index 865a4b1ba14cbac2757dcf3e93ac75788ef9c9ec..3313ac008a5484c4074b06787ee0f85541a6863c 100644 (file)
 #include "indirect_vertex_array.h"
 #include <GL/glxproto.h>
 
+#if !defined __GNUC__ || __GNUC__ < 3
+#  define __builtin_expect(x, y) x
+#endif
+
 static void
 do_vertex_attrib_enable(GLuint index, GLboolean val)
 {
index 0eb31bf1e304781eb4459aa6893777e649638e1b..8b51b5d8b7f947a964c62ae1c53df8c21d0d58c9 100644 (file)
 #include "glxclient.h"
 #include "indirect.h"
 
+#if !defined __GNUC__ || __GNUC__ < 3
+#  define __builtin_expect(x, y) x
+#endif
+
 /**
  * Send glPixelStore command to the server
  *