diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-07-18 12:31:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-07-18 12:31:07 +0200 |
commit | ecb2e5d125279defd1fb638968a83425a60d7b4e (patch) | |
tree | f4b3dd1876bc177023099712441c0683302546ff /src | |
parent | 78b44d2b10ba948b9ecb12bdf20a501c8a0d3a20 (diff) |
fix likely/unlikey gcc check
Diffstat (limited to 'src')
-rw-r--r-- | src/macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |