diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/glheader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index 19eff31841e..23956fdcf07 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 |