summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/pixelstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/x11/pixelstore.c')
-rw-r--r--src/glx/x11/pixelstore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/x11/pixelstore.c b/src/glx/x11/pixelstore.c
index 0eb31bf1e30..8b51b5d8b7f 100644
--- a/src/glx/x11/pixelstore.c
+++ b/src/glx/x11/pixelstore.c
@@ -31,6 +31,10 @@
#include "glxclient.h"
#include "indirect.h"
+#if !defined __GNUC__ || __GNUC__ < 3
+# define __builtin_expect(x, y) x
+#endif
+
/**
* Send glPixelStore command to the server
*