From: Alan Coopersmith Date: Fri, 12 Mar 2010 18:27:03 +0000 (-0800) Subject: glx/single2.c: Don't call __builtin_expect on non-gnu compilers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57c378a531a18d4ae97e04caa9e7bda19593db7e;p=mesa.git glx/single2.c: Don't call __builtin_expect on non-gnu compilers Signed-off-by: Alan Coopersmith --- diff --git a/src/glx/single2.c b/src/glx/single2.c index 9ecf589ffff..a1461956b99 100644 --- a/src/glx/single2.c +++ b/src/glx/single2.c @@ -44,6 +44,9 @@ #include #endif /* USE_XCB */ +#if !defined(__GNUC__) +# define __builtin_expect(x, y) x +#endif /* Used for GL_ARB_transpose_matrix */ static void