Jakub Jelinek 79c245
--- valgrind/include/pub_tool_basics.h.jj	2010-10-20 22:19:27.000000000 +0200
Jakub Jelinek 79c245
+++ valgrind/include/pub_tool_basics.h	2010-11-05 18:03:15.416830321 +0100
Jakub Jelinek 79c245
@@ -316,7 +316,7 @@ static inline Bool sr_EQ ( SysRes sr1, S
Jakub Jelinek 79c245
 #define VG_BUGS_TO "www.valgrind.org"
Jakub Jelinek 79c245
 
Jakub Jelinek 79c245
 /* Branch prediction hints. */
Jakub Jelinek 79c245
-#if 1 /*HAVE_BUILTIN_EXPECT*/
Jakub Jelinek 79c245
+#if defined(__GNUC__) && (__GNUC__ >= 3) /*HAVE_BUILTIN_EXPECT*/
Jakub Jelinek 79c245
 #  define LIKELY(x)   __builtin_expect(!!(x), 1)
Jakub Jelinek 79c245
 #  define UNLIKELY(x) __builtin_expect((x), 0)
Jakub Jelinek 79c245
 #else