aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 6ed1dc4f..34f7994f 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -3,6 +3,11 @@
#include <stdio.h>
#define fdprintf(...) dprintf(__VA_ARGS__)
+#ifdef __GNUC__
+#define noreturn __attribute__((noreturn))
+#else
+#define noreturn
+#endif
#ifndef __APPLE__
#include <byteswap.h>