glx/single2.c: Don't call __builtin_expect on non-gnu compilers
authorAlan Coopersmith <alan.coopersmith@sun.com>
Fri, 12 Mar 2010 18:27:03 +0000 (10:27 -0800)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Fri, 12 Mar 2010 18:28:13 +0000 (10:28 -0800)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
src/glx/single2.c

index 9ecf589ffffa47d658d42aeee39e9549988eb1a1..a1461956b993e3d392f4d5adc5209c2abffa533a 100644 (file)
@@ -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