summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-18 12:31:07 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-18 12:31:07 +0200
commitecb2e5d125279defd1fb638968a83425a60d7b4e (patch)
treef4b3dd1876bc177023099712441c0683302546ff
parent78b44d2b10ba948b9ecb12bdf20a501c8a0d3a20 (diff)
fix likely/unlikey gcc check
-rw-r--r--src/macro.h2
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