summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdefs.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-08-09 15:38:32 +0000
committerpfg <pfg@FreeBSD.org>2015-08-09 15:38:32 +0000
commit002ccc595cc1ba09a8c1d317ac177643a06b4300 (patch)
treebabbf50a168520bc1b0edd7508dbfb9ac7bdb8a3 /sys/sys/cdefs.h
parentbb7dc7537d3f890f3b49a156a894c1d810917f4d (diff)
downloadFreeBSD-src-002ccc595cc1ba09a8c1d317ac177643a06b4300.zip
FreeBSD-src-002ccc595cc1ba09a8c1d317ac177643a06b4300.tar.gz
cdefs: reduce code duplication
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r--sys/sys/cdefs.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 1a511cf..5b3d2cf 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -227,16 +227,7 @@
#define __unused
/* XXX Find out what to do for __packed, __aligned and __section */
#endif
-#if __GNUC_PREREQ__(2, 7)
-#define __dead2 __attribute__((__noreturn__))
-#define __pure2 __attribute__((__const__))
-#define __unused __attribute__((__unused__))
-#define __used __attribute__((__used__))
-#define __packed __attribute__((__packed__))
-#define __aligned(x) __attribute__((__aligned__(x)))
-#define __section(x) __attribute__((__section__(x)))
-#endif
-#if defined(__INTEL_COMPILER)
+#if __GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER)
#define __dead2 __attribute__((__noreturn__))
#define __pure2 __attribute__((__const__))
#define __unused __attribute__((__unused__))
OpenPOWER on IntegriCloud