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

Mike Gran spk121 at yahoo.com
Sat Oct 4 12:39:30 PDT 2014


> I just gave that a quick try -  but no, it didn't help.  I think it's 

> the 'C'/C++ issue that I mentioned in my last post.  It's the kind 
> of 
> thing which might be acceptable to some compilers but not others.  MSVC 
> is notoriously strict about 'C' code  :-(


As an aside, the MSVC team has said that they never intend to
push MSVC past C89, but, that they do fully intent to support, in their
C++ compiler, the subset of C that exists in C++11 and C++14.

They (or at least Herb Sutter) recommend that

"C developers use the C++ compiler to compile C code (using /TP if
the file is named something.c). This is the best choice for using
Visual C++ to compile C code."

http://herbsutter.com/2012/05/03/reader-qa-what-about-vc-and-c99/

But doing so in Cairo would like lead to a bunch of warnings and
errors about casting.


More information about the cairo mailing list