Add ATTRIBUTE_PACKED to ansidecl.h
Kaveh R. GHAZI
ghazi@caip.rutgers.edu
Wed Dec 6 23:40:00 GMT 2006
On Wed, 6 Dec 2006, Nick Clifton wrote:
> +/* Useful for structures whoes 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
Please consider using "__packed__" not "packed". All the other ATTRIBUTE
macros use underscores to avoid conflicts with user-space macros.
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu
More information about the Gcc-patches
mailing list