Havoc Pennington hp@redhat.com
Fri, 27 Jun 2003 23:19:43 -0400

On Sat, Jun 28, 2003 at 05:08:47AM +0200, Miloslav Trmac wrote:
> attached patch removes _DBUS_STRUCT_OFFSET. The offsetof macro in
> <stddef.h> is defined by ANSI C and its usage does not invoke undefined
> behavior, which _DBUS_STRUCT_OFFSET does, strictly speaking.

See the comment here:

I have no personal knowledge, but we do know that the GLib/GTK macro
works on all platforms anyone has ever cared about, so it seems like
this change is all risk no gain.

Maybe a configure check for offsetof and then implement
_DBUS_STRUCT_OFFSET in terms of it if present?