diff options
author | Nick Clifton <nickc@redhat.com> | 2006-12-06 18:08:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-12-06 18:08:51 +0000 |
commit | 1d3fa725a45ea591a5c3a0f12e3a388560b50748 (patch) | |
tree | 0ceb54c605df5fbee22e0d49667d902521bf8778 /include/ansidecl.h | |
parent | 134f44114bd411acf392d3c633c631efac14031b (diff) |
* ansidecl.h (ATTRIBUTE_PACKED): Define.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@119587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index a1a765d63f3..16adc47a1bf 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -361,6 +361,12 @@ So instead we use the macro below and test it against specific values. */ # endif /* GNUC >= 3.0 */ #endif /* ATTRIBUTE_ALIGNED_ALIGNOF */ +/* Useful for structures whose layout must much some binary specification + regardless of the alignment and padding qualities of the compiler. */ +#ifndef ATTRIBUTE_PACKED +# define ATTRIBUTE_PACKED __attribute__ ((packed)) +#endif + /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ |