Fix _packed attribute for PCC. According to Ragge it should be _Pragma("packed
1") instead of _Pragma("packed"). With this fix userland programs needing _packed will now work.
This commit is contained in:
parent
d16a259fe3
commit
1657de3650
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdefs.h,v 1.74 2009/04/22 18:04:02 christos Exp $ */
|
||||
/* $NetBSD: cdefs.h,v 1.75 2009/05/12 13:41:44 reinoud Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -214,7 +214,7 @@
|
|||
#define __aligned(x) __attribute__((__aligned__(x)))
|
||||
#define __section(x) __attribute__((__section__(x)))
|
||||
#elif defined(__PCC__)
|
||||
#define __packed _Pragma("packed")
|
||||
#define __packed _Pragma("packed 1")
|
||||
#define __aligned(x) _Pragma("aligned " __STRING(x))
|
||||
#define __section(x) _Pragma("section " ## x)
|
||||
#elif defined(__lint__)
|
||||
|
|
Loading…
Reference in New Issue