aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
Diffstat (limited to 'make.c')
-rw-r--r--make.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/make.c b/make.c
index 0b3837f..ec48e23 100644
--- a/make.c
+++ b/make.c
@@ -31,6 +31,14 @@ static char *cflags_all[] = {
#if __GLIBC__
"-D_GNU_SOURCE",
#endif
+#if __GNUC__
+ "-Dlikely(x)=__builtin_expect(!!(x), 1)",
+ "-Dunlikely(x)=__builtin_expect(!!(x), 0)",
+#else
+ "-D__attribute__(x)=",
+ "-Dlikely(x)=(x)",
+ "-Dunlikely(x)=(x)",
+#endif
};
static char *cflags_dbg[] = {