summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/common.h b/common.h
index e11cc511..cc431272 100644
--- a/common.h
+++ b/common.h
@@ -51,13 +51,25 @@
} while (0 /* CONSTCOND */);
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
-# define _noreturn __attribute__((__noreturn__))
-# define _packed __attribute__((__packed__))
-# define _unused __attribute__((__unused__))
+# ifndef __dead
+# define __dead __attribute__((__noreturn__))
+# endif
+# ifndef __packed
+# define __packed __attribute__((__packed__))
+# endif
+# ifndef __unused
+# define __unused __attribute__((__unused__))
+# endif
#else
-# define _noreturn
-# define _packed
-# define _unused
+# ifndef __dead
+# define __dead
+# endif
+# ifndef __packed
+# define __packed
+# endif
+# ifndef __unused
+# define __unused
+# endif
#endif
/* We don't really need this as our supported systems define __restrict