From 4ba39c40aef45be5d534676c8661e90808deb602 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 6 Jun 2008 16:06:09 -0700 Subject: [PATCH] Fix builds with compilers other than gcc 3.0 & newer Add #include "glheader.h" for definition of __builtin_expect for compilers that don't support it. Signed-off-by: Brian Paul --- src/glx/x11/indirect_vertex_program.c | 1 + src/glx/x11/pixelstore.c | 1 + src/glx/x11/singlepix.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/glx/x11/indirect_vertex_program.c b/src/glx/x11/indirect_vertex_program.c index 5383dcc9810..8d7cec9dd21 100644 --- a/src/glx/x11/indirect_vertex_program.c +++ b/src/glx/x11/indirect_vertex_program.c @@ -23,6 +23,7 @@ * SOFTWARE. */ +#include "glheader.h" #include #include #include "indirect.h" diff --git a/src/glx/x11/pixelstore.c b/src/glx/x11/pixelstore.c index 3bf1b35ba3c..8431b29e906 100644 --- a/src/glx/x11/pixelstore.c +++ b/src/glx/x11/pixelstore.c @@ -34,6 +34,7 @@ ** */ +#include "glheader.h" #include "glxclient.h" #include "indirect.h" diff --git a/src/glx/x11/singlepix.c b/src/glx/x11/singlepix.c index bc5b162c679..5f977666371 100644 --- a/src/glx/x11/singlepix.c +++ b/src/glx/x11/singlepix.c @@ -34,6 +34,7 @@ ** */ +#include "glheader.h" #include "packsingle.h" #include "indirect.h" #include "dispatch.h" -- 2.30.2