From ecb2e5d125279defd1fb638968a83425a60d7b4e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Jul 2008 12:31:07 +0200 Subject: fix likely/unlikey gcc check --- src/macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/macro.h') diff --git a/src/macro.h b/src/macro.h index b0ff940..582ba2b 100644 --- a/src/macro.h +++ b/src/macro.h @@ -28,7 +28,7 @@ #error "Please include config.h before including this file!" #endif -#if __GNUC__ >= 2 +#if defined (__GNUC__) && __GNUC__ >= 3 #define CA_LIKELY(x) (__builtin_expect(!!(x),1)) #define CA_UNLIKELY(x) (__builtin_expect((x),0)) #else -- cgit