gcc-3 support
Scott James Remnant
scott at netsplit.com
Mon Sep 4 16:23:26 BST 2006
On Mon, 2006-09-04 at 15:32 +0300, Johan Kiviniemi wrote:
> Making upstart compile with gcc-3 seems to be as simple as using
> offsetof instead of __builtin_offsetof (see the attached patch).
>
> It should not cause any difference in performance (or anything else)
> with gcc-4 because gcc-4's <stddef.h> defines offsetof as:
>
> #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
>
> Of course, i might be missing the point of using __builtin_offsetof in
> the first place.
>
No, I was probably just sleepy or something. stddef.h is already
included by nih/macros.h so I've applied the latter two hunks of your
patch :)
Thanks,
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20060904/0c300ede/attachment.pgp
More information about the Upstart-devel
mailing list