[cairo] "operator" keyword in libcairo

Chris fltk at functionalfuture.com
Wed Dec 29 08:46:06 PST 2004


On Tue, 2004-12-28 at 17:06 -0800, Ned Konz wrote:
> On Tuesday 28 December 2004 2:14 pm, Chris wrote:
> > I noticed that in libcairo there are tons of variables named "operator."
> >
> > Operator is a keyword in the Microsoft compiler and causes a lot of pain
> > when trying to compile over there.  I'm going to rename them to "op" or
> > something and see how it goes from there.
> 
> It shouldn't be a keyword in a C compiler (though of course it is in C++), 
> should it? Do they also reserve new, delete, etc.?

I found the issue with this.  It's "cairo_gdip_font.cpp" which I don't
need to compile but it does use the "operator" keyword and it's a C++
file.

-- 
// Chris




More information about the cairo mailing list