diff options
Diffstat (limited to 'inotail.h')
-rw-r--r-- | inotail.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -24,7 +24,10 @@ struct file_struct { # define dprintf(fmt, args...) #endif /* DEBUG */ -/* Taken from linux kernel source tree */ -#define unlikely(x) __builtin_expect(!!(x), 0) +#ifdef __GNUC__ +# define unlikely(x) __builtin_expect(!!(x), 0) /* Taken from linux kernel source */ +#else +# define unlikely(x) (x) +#endif #endif /* _INOTAIL_H */ |