From 78b44d2b10ba948b9ecb12bdf20a501c8a0d3a20 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Jul 2008 00:39:01 +0200 Subject: ancient versions of gcc don't have __builtin_expect --- src/macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macro.h b/src/macro.h index c57c922..b0ff940 100644 --- a/src/macro.h +++ b/src/macro.h @@ -28,7 +28,7 @@ #error "Please include config.h before including this file!" #endif -#ifdef __GNUC__ +#if __GNUC__ >= 2 #define CA_LIKELY(x) (__builtin_expect(!!(x),1)) #define CA_UNLIKELY(x) (__builtin_expect((x),0)) #else -- cgit