summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/inotail.h b/inotail.h
index c733943..d483e02 100644
--- a/inotail.h
+++ b/inotail.h
@@ -38,8 +38,10 @@ struct file_struct {
#define is_digit(c) ((c) >= '0' && (c) <= '9')
#ifdef __GNUC__
+# define likely(x) __builtin_expect(!!(x), 1)
# define unlikely(x) __builtin_expect(!!(x), 0)
#else
+# define likely(x) (x)
# define unlikely(x) (x)
#endif /* __GNUC__ */