summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-02-07 11:14:52 +0100
committerTobias Klauser <tklauser@distanz.ch>2011-02-07 11:14:52 +0100
commit38515e5027712d443e3f18cf8525af902372fe8a (patch)
tree11c218aa3cd325a8a1c4e3fec247341731f0286e /inotail.h
parent9b1d91488f6b5c72b650bccf8ac7e2b668c69da7 (diff)
Add __noreturn attribute, update copyright
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/inotail.h b/inotail.h
index 3320c3d..e5ad3c3 100644
--- a/inotail.h
+++ b/inotail.h
@@ -1,7 +1,8 @@
/*
- * Copyright (C) 2005-2009, Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2005-2011, Tobias Klauser <tklauser@distanz.ch>
*
- * Licensed under the terms of the GNU General Public License; version 2 or later.
+ * This file is licensed under the terms of the GNU General Public License;
+ * version 2 or later.
*/
#ifndef _INOTAIL_H
@@ -47,11 +48,13 @@ 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)
+# define __noreturn __attribute ((noreturn))
+# define likely(x) __builtin_expect(!!(x), 1)
+# define unlikely(x) __builtin_expect(!!(x), 0)
#else
-# define likely(x) (x)
-# define unlikely(x) (x)
+# define __noreturn
+# define likely(x) (x)
+# define unlikely(x) (x)
#endif /* __GNUC__ */
#ifdef DEBUG