Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys lint knows __packed now.
details: https://anonhg.NetBSD.org/src/rev/09dfae3327a7
branches: trunk
changeset: 747816:09dfae3327a7
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 02 21:05:28 2009 +0000
description:
lint knows __packed now.
diffstat:
sys/sys/cdefs.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r 24a29187df0a -r 09dfae3327a7 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Fri Oct 02 21:05:10 2009 +0000
+++ b/sys/sys/cdefs.h Fri Oct 02 21:05:28 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.77 2009/08/08 21:23:15 christos Exp $ */
+/* $NetBSD: cdefs.h,v 1.78 2009/10/02 21:05:28 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -228,7 +228,11 @@
#define __used __unused
#endif
-#if __GNUC_PREREQ__(2, 7)
+#if defined(__lint__)
+#define __packed __packed
+#define __aligned(x) /* delete */
+#define __section(x) /* delete */
+#elif __GNUC_PREREQ__(2, 7)
#define __packed __attribute__((__packed__))
#define __aligned(x) __attribute__((__aligned__(x)))
#define __section(x) __attribute__((__section__(x)))
@@ -236,10 +240,6 @@
#define __packed _Pragma("packed 1")
#define __aligned(x) _Pragma("aligned " __STRING(x))
#define __section(x) _Pragma("section " ## x)
-#elif defined(__lint__)
-#define __packed /* delete */
-#define __aligned(x) /* delete */
-#define __section(x) /* delete */
#else
#define __packed error: no __packed for this compiler
#define __aligned(x) error: no __aligned for this compiler
Home |
Main Index |
Thread Index |
Old Index