Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat Add a compat definition of __packed.
details: https://anonhg.NetBSD.org/src/rev/451b7a272ee3
branches: trunk
changeset: 565961:451b7a272ee3
user: matt <matt%NetBSD.org@localhost>
date: Sat Apr 24 15:46:24 2004 +0000
description:
Add a compat definition of __packed.
diffstat:
tools/compat/compat_defs.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 6160ded22360 -r 451b7a272ee3 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h Sat Apr 24 15:09:54 2004 +0000
+++ b/tools/compat/compat_defs.h Sat Apr 24 15:46:24 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_defs.h,v 1.33 2004/04/23 14:46:31 christos Exp $ */
+/* $NetBSD: compat_defs.h,v 1.34 2004/04/24 15:46:24 matt Exp $ */
#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
@@ -75,6 +75,13 @@
#if !defined(__attribute__) && !defined(__GNUC__)
#define __attribute__(x)
#endif
+#if !defined(__packed)
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#define __packed __attribute__((__packed__))
+#else
+#define __packed error: no __packed for this compiler
+#endif
+#endif /* !__packed */
#ifndef __RENAME
#define __RENAME(x)
#endif
Home |
Main Index |
Thread Index |
Old Index