[ccan] dgraph, tlist, tcon: MSVC error due to array of flexible structs
Kevin Locke
kevin at kevinlocke.name
Wed Aug 2 15:38:22 AEST 2017
On Tue, 2017-08-01 at 15:22 +1000, David Gibson wrote:
> On Thu, Sep 22, 2016 at 10:31:16PM -0600, Kevin Locke wrote:
>> [...]
>>
>> The issue is that MSVC supports flexible array members, but does not
>> support arrays of structs with flexible array members. My
>> understanding is that such support is not required by C99 or C11, but
>> I don't know whether such support is common beyond Clang/GCC.
>>
>> Is there any interest in supporting such compilers? If so, I can see
>> a few potential fixes:
>>
>> [...]
>>
>> 3. Change TLIST to use TCON_WRAP? I don't understand TLIST/TCON well
>> enough to know if this is really an option. Hopefully an expert can
>> weigh in here.
>
> I've now done this for tlist and several other modules, we should have
> a much better chance of compiling on windows.
Great stuff! Thanks for all of your work to make the changes!
As soon as I get a chance I'll take another look at building with MSVC
and see what hurdles exist and how feasible it might be to get the
ccan tools compiling.
--
Cheers, | kevin at kevinlocke.name | XMPP: kevin at kevinlocke.name
Kevin | https://kevinlocke.name | IRC: kevinoid on freenode
More information about the ccan
mailing list