Tuesday, 14 April 2020

Re: Libcss fails to compile with msvc 2019 (windows)

Em ter., 14 de abr. de 2020 às 07:59, Michael Drake <mdrake.unique@gmail.com> escreveu:
Please try with libwapcaplet updated to the latest master.

This commit should fix the problem:

Yes, fixed. Thanks.

Unfortunately msvc not fully support C99, and do not have the keyword "restrict".

computed.h (line 82):
css_error css_computed_style_compose(
const css_computed_style * _restrict parent,
const css_computed_style * _restrict child,
css_error (*compute_font_size)(void *pw,
const struct css_hint *parent,
struct css_hint *size),
void *pw,
css_computed_style ** _restrict result);

WIth msvc 2019, change restrict to _restrict solves.

Another problem is, with msvc makefile.
nmake do not support c source file name repeated, I think.

Libcss have two directory parse and select, with files names repeated.
I think I'll have to create two separate makefiles.

regards,
Ranier Vilela

No comments:

Post a Comment