diff lib/portability.h @ 166:5f1d3ad8a888

Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
author Rob Landley <rob@landley.net>
date Thu, 15 Nov 2007 21:12:24 -0600
parents c3d1d74d5d8f
children 9051cb744d0a
line wrap: on
line diff
--- a/lib/portability.h	Thu Nov 15 20:52:01 2007 -0600
+++ b/lib/portability.h	Thu Nov 15 21:12:24 2007 -0600
@@ -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>