summaryrefslogtreecommitdiff
path: root/utils/porting.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-08-10 11:49:06 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-08-10 11:49:06 +0200
commit587a72856b650a5a16c5b308be4197f26627a816 (patch)
tree77597b72323ccb9ecc9a70e72f844b1acfb0747f /utils/porting.h
parent4ae13b764d61fa9cf96414552f512b72f8b41aca (diff)
define attribute_noreturn
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils/porting.h')
-rw-r--r--utils/porting.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/porting.h b/utils/porting.h
index 6bb7fa91f..b0d1f1af9 100644
--- a/utils/porting.h
+++ b/utils/porting.h
@@ -72,4 +72,10 @@
# error "Unknown host byte order!"
#endif
+#if defined __GNUC__ || defined __ICC
+# define attribute_noreturn __attribute__ ((__noreturn__))
+#else
+# define attribute_noreturn
+#endif
+
#endif