summaryrefslogtreecommitdiff
path: root/include/asterisk/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/compiler.h')
-rw-r--r--include/asterisk/compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h
index 77b5de40e..6ceaa5f77 100644
--- a/include/asterisk/compiler.h
+++ b/include/asterisk/compiler.h
@@ -77,6 +77,12 @@
#define attribute_may_alias
#endif
+#ifdef HAVE_ATTRIBUTE_noreturn
+#define attribute_noreturn __attribute__((noreturn))
+#else
+#define attribute_noreturn
+#endif
+
/* Some older version of GNU gcc (3.3.5 on OpenBSD 4.3 for example) dont like 'NULL' as sentinel */
#define SENTINEL ((char *)NULL)