From 7294d62040b399c80f7755279fd5b5633d468f34 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 15 Nov 2016 15:53:38 -0800 Subject: [PATCH] compiler.h: use the correct symbol to test for __builtin_expect() __builtin_expect() has leading underscores, they need to be reflected in the symbol. Signed-off-by: H. Peter Anvin --- include/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/compiler.h b/include/compiler.h index 71f135d8..2c4e6e3f 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -172,7 +172,7 @@ char *strsep(char **, const char *); * Hints to the compiler that a particular branch of code is more or * less likely to be taken. */ -#if HAVE_BUILTIN_EXPECT +#if HAVE___BUILTIN_EXPECT # define likely(x) __builtin_expect(!!(x), 1) # define unlikely(x) __builtin_expect(!!(x), 0) #else