[PATCH xserver 1/1] list: Use offsetof() to determine member offsets within a structure

Keith Packard keithp at keithp.com
Wed Aug 29 13:42:50 PDT 2012


Alan Coopersmith <alan.coopersmith at oracle.com> writes:

> If AC_C_TYPEOF works, then I'm happy with that, otherwise a little
> quick testing

AC_C_TYPEOF seems like the best bet to me, but I'm not sure it's in
autoconf 2.60 (our current AC_PREREQ). All I've got here is 2.59 (which
does not appear to have AC_C_TYPEOF) and 2.64 (which does).

It looks like the autoconf AC_C_TYPEOF checks for both typeof and
__typeof__.

Alan -- I'm afraid we'll need to rely upon you to test this and make
sure it works for the Sun compilers...

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120829/0fe3ab6e/attachment-0001.pgp>


More information about the xorg-devel mailing list