[Side-effect] Macro expansion error in `freetype` of `popper`
In freetype2/src/base/ftglyph.c:FT_Glyph_Get_CBox
/* retrieve bbox in 26.6 coordinates */
clazz->glyph_bbox( glyph, acbox );
/* perform grid fitting if needed */
if ( bbox_mode == FT_GLYPH_BBOX_GRIDFIT ||
bbox_mode == FT_GLYPH_BBOX_PIXELS )
{
acbox->xMin = FT_PIX_FLOOR( acbox->xMin );
// ....
}
becomes
clazz->glyph_bbox(glyph, acbox);
if (bbox_mode == FT_GLYPH_BBOX_GRIDFIT || bbox_mode == FT_GLYPH_BBOX_PIXELS) {
acbox->xMin = ((acbox->xMin) & ~(typeof (acbox->xMin))63);
// ....
}
/magma/targets/poppler/freetype2/src/base/ftglyph.c:478:42: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
acbox->xMin = ((acbox->xMin) & ~(typeof (acbox->xMin))63);
^
/magma/targets/poppler/freetype2/src/base/ftglyph.c:478:63: error: expected ')'
acbox->xMin = ((acbox->xMin) & ~(typeof (acbox->xMin))63);
^