Jim Meyering <[EMAIL PROTECTED]> writes: > Putting a compile-time assertion like the following, > right after the struct definition, adds some clout :-) > > verify (offsetof (struct S, member_m) % 4 == 0); > > Hmm... that assumes 8-bit bytes.
You could multiply by CHAR_BIT and check for a multiple of 32. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib