aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-15 21:12:24 -0600
committerRob Landley <rob@landley.net>2007-11-15 21:12:24 -0600
commitefa93b987a355385d0b1a1ac4e3a0e25db63b494 (patch)
treee1a5a15c7fa4f802d373c82171e8742838cac7de /lib/portability.h
parentac442b497bc7d023b36595b6d072d4499f3485f4 (diff)
downloadtoybox-efa93b987a355385d0b1a1ac4e3a0e25db63b494.tar.gz
Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
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>