6 * ALIGNOF - get the alignment of a type
9 * This returns a safe alignment for the given type.
12 /* A GCC extension. */
13 #define ALIGNOF(t) __alignof__(t)
15 /* Alignment by measuring structure padding. */
16 #define ALIGNOF(t) ((char *)(&((struct { char c; t _h; } *)0)->_h) - (char *)0)
19 #endif /* CCAN_ALIGNOF_H */