[cairo] Compilation errors with MSVC after recent changes to 'cairo-path-stroke-traps.c'

Chris Wilson chris at chris-wilson.co.uk
Fri Oct 10 12:37:06 PDT 2014


On Fri, Oct 10, 2014 at 11:27:39AM -0700, Bryce Harrington wrote:
> On Fri, Oct 10, 2014 at 09:35:56AM +0100, John Emmas wrote:
> > Hello guys - this morning I updated again (from git master) but I'm
> > still unable to build 'cairo-path-stroke-traps.c' (either as 'C' or
> > C++).  This is with MSVC8 (and possibly later).
> > 
> > I assume this must be a trickier problem than it seems.  Do I need
> > to file a bug report somewhere?
> 
> Yeah (https://bugs.freedesktop.org/), although what'd really be helpful
> is a proposed patch.  A lot of us don't do dev on msvc so aren't in a
> position to diagnose this, but if a workaround or kludge is found we can
> probably help figure out how to turn that into a proper fix.

I guess it just wants explicit structure initialisation with each field
or it may not even like the variable length array?  e.g.
cairo_point_t t[3] = { {in->x, in->y }, {mid->x, mid->y}, {out->x, out->y}};

It'll take a bit of trial and error to remember what msvc accepts.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list