[cairo] "operator" keyword in libcairo
Ned Konz
ned at squeakland.org
Wed Dec 29 08:53:40 PST 2004
On Wednesday 29 December 2004 8:46 am, Chris wrote:
> > > 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.
Well, sure. But then it's not going to use 'operator' as a variable name in
that file. I still don't understand the problem. Aren't the uses of
'operator' as a variable name just in the C files? You compile the C files
with a C compiler and the C++ files with a C++ compiler.
--
Ned Konz
http://bike-nomad.com/squeak/
More information about the cairo
mailing list