Hi,
I'm trying to compile libcss on windows, with msvc 2019 and the following error is appearing.
stylesheet.c
libcss\src\parse/language.h(88): error C2059: erro de sintaxe: '{'
libcss\src\parse/language.h(88): error C2059: erro de sintaxe: ')'
libcss\src\parse/language.h(88): error C2059: erro de sintaxe: '=='
libcss\src\parse/language.h(98): error C2059: erro de sintaxe: 'return'
libcss\src\parse/language.h(99): error C2059: erro de sintaxe: '}'
Msvc 2019, translate tokenIsChar to:
static inline _Bool tokenIsChar(const css_token *token, uint8_t c)
{
if (token != ((void *)0) && token->type == CSS_TOKEN_CHAR &&
({(void)( (!!(token->idata != ((void *)0))) || (_wassert(L"token->idata != NULL", L"C:\\usr\\src\\libpdf\\libcss\\src\\parse/language.h", (unsigned)(86)), 0) ); (token->idata)->len;}) == 1) {
char d = ({(void)( (!!(token->idata != ((void *)0))) || (_wassert(L"token->idata != NULL", L"C:\\usr\\src\\libpdf\\libcss\\src\\parse/language.h", (unsigned)(87)), 0) ); (const char *)((token->idata)+1);})[0];
if ('A' <= d && d <= 'Z')
d += 'a' - 'A';
return (d == c);
}
return 0;
}
{
if (token != ((void *)0) && token->type == CSS_TOKEN_CHAR &&
({(void)( (!!(token->idata != ((void *)0))) || (_wassert(L"token->idata != NULL", L"C:\\usr\\src\\libpdf\\libcss\\src\\parse/language.h", (unsigned)(86)), 0) ); (token->idata)->len;}) == 1) {
char d = ({(void)( (!!(token->idata != ((void *)0))) || (_wassert(L"token->idata != NULL", L"C:\\usr\\src\\libpdf\\libcss\\src\\parse/language.h", (unsigned)(87)), 0) ); (const char *)((token->idata)+1);})[0];
if ('A' <= d && d <= 'Z')
d += 'a' - 'A';
return (d == c);
}
return 0;
}
Libcss uses some gcc resource?
This is compatible with C99?
best regards
Ranier Vilela
No comments:
Post a Comment