[ccan] container_of_var() macro broken for compilers without typeof()
Delio Brignoli
brignoli.delio at gmail.com
Thu Nov 11 01:45:30 EST 2010
On 10/11/2010, at 07:22, Rusty Russell wrote:
> On Wed, 10 Nov 2010 08:13:21 am Delio Brignoli wrote:
>> and (b) 'containing_type' is undefined.
>> I understand this cannot be fixed (*) but I was wondering if the #else branch should contain and #error to display an explicit error message.
>>
>> (*) except by changing the list's interface, which I suspect would not be a popular solution.
>
> Oh no, it can be fixed, here's the quick patch I'm putting in now. I'm
> testing the rest of the tree with !HAVE_TYPEOF too..
Ah! I guess I meant 'cannot be fixed while keeping offsetof()' ;)
> Thanks for the report!
Thank you for the patch!
--
Delio
More information about the ccan
mailing list