diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-23 20:35:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-25 11:07:31 -0700 |
commit | 707c017af68df24441e86b8a69831633a4106ca3 (patch) | |
tree | debe9bc7c78d7f215930d8fbedde876dd87e9a94 /src/glx/x11/indirect_vertex_program.c | |
parent | ad11107206ff4954366d77f334431b637ee256fa (diff) | |
download | external_mesa3d-707c017af68df24441e86b8a69831633a4106ca3.zip external_mesa3d-707c017af68df24441e86b8a69831633a4106ca3.tar.gz external_mesa3d-707c017af68df24441e86b8a69831633a4106ca3.tar.bz2 |
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/indirect_vertex_program.c')
-rw-r--r-- | src/glx/x11/indirect_vertex_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/x11/indirect_vertex_program.c b/src/glx/x11/indirect_vertex_program.c index 865a4b1..3313ac0 100644 --- a/src/glx/x11/indirect_vertex_program.c +++ b/src/glx/x11/indirect_vertex_program.c @@ -30,6 +30,10 @@ #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) { |