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

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.