aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/single2.c
diff options
context:
space:
mode:
authorAlan Coopersmith <[email protected]>2010-03-12 10:27:03 -0800
committerAlan Coopersmith <[email protected]>2010-03-12 10:28:13 -0800
commit57c378a531a18d4ae97e04caa9e7bda19593db7e (patch)
treea53b18e9a2fda8888f32e080c3adcd31da02ac29 /src/glx/single2.c
parentb13e305ee1a2454265fd957a99640a2e49507bea (diff)
glx/single2.c: Don't call __builtin_expect on non-gnu compilers
Signed-off-by: Alan Coopersmith <[email protected]>
Diffstat (limited to 'src/glx/single2.c')
-rw-r--r--src/glx/single2.c3
1 files changed, 3 insertions, 0 deletions
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 <X11/Xlib-xcb.h>
#endif /* USE_XCB */
+#if !defined(__GNUC__)
+# define __builtin_expect(x, y) x
+#endif
/* Used for GL_ARB_transpose_matrix */
static void