From 8e77da1cd7d63af5e7ffcf7ea220cdaf1bdc8162 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 29 Jun 2004 19:08:20 +0000 Subject: First phase of TLS work. At this point SPARC assembly dispatch is broken, but it will be fixed "shortly." This is pretty much the same as the patch I sent to the dri-devel list on 22-Jun-2004. --- src/mesa/main/glheader.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/main/glheader.h') diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index 19eff31841..23956fdcf0 100644 --- a/src/mesa/main/glheader.h +++ b/src/mesa/main/glheader.h @@ -328,6 +328,12 @@ typedef GLushort GLhalfARB; #endif +#if !defined __GNUC__ || __GNUC__ < 3 +# define __builtin_expect(x, y) x +#endif + + + /** * Sometimes we treat GLfloats as GLints. On x86 systems, moving a float * as a int (thereby using integer registers instead of FP registers) is -- cgit v1.2.3