summaryrefslogtreecommitdiffstats
path: root/lib/packed.h
blob: 9a9b6e23e96b66ab2a1a6538207a87e806cd46b9 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef __LIB_PACKED_H
#define __LIB_PACKED_H

/* The "packed" attribute, when applied to a structure, prevents
   GCC from inserting padding bytes between or after structure
   members.  It must be specified at the time of the structure's
   definition, normally just after the closing brace. */
#define PACKED __attribute__ ((packed))

#endif /* lib/packed.h */