summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/inotail.h b/inotail.h
index f6e90e8..b47e6a4 100644
--- a/inotail.h
+++ b/inotail.h
@@ -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 */
5031da7c967d954e5f9415cd05f4abdb692'>genetlink: pass family to functions using groupsJohannes Berg1-1/+2 2013-11-07ACPI / event: remove unneeded NULL pointer checkMathias Krause1-5/+0 2013-07-15ACPI: Remove the old /proc/acpi/event interfaceThomas Renninger1-106/+0 2011-10-31acpi: add export.h to files using THIS_MODULE/EXPORT_SYMBOLPaul Gortmaker1-0/+1