summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-18 00:39:01 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-18 00:39:01 +0200
commit78b44d2b10ba948b9ecb12bdf20a501c8a0d3a20 (patch)
tree293c7608da5f8b06357e266be1f7d942cbd8d96d
parent7de89fe8b4aa374f172b379908e0ecfd8d291198 (diff)
ancient versions of gcc don't have __builtin_expect
-rw-r--r--src/macro.h2
1 files changed, 1 insertions, 1 deletions
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