[cairo] Cairo on win32

Evan Martin martine at danga.com
Tue Jun 1 17:34:02 PDT 2004

On Sun, May 30, 2004 at 11:20:29PM +0200, Hans Breuer wrote:
>         * cairo/src/cairo.c : s/CAIRO_CHECK_SANITY 
> (cr);/CAIRO_CHECK_SANITY (cr)/
>         At least the msvc compiler does not like stray semicolons

Another solution might be to change the CHECK_SANITY macro so that it
includes a simple "0" at the end, so you'll instead get stray "0;"s when
it macro-expands.
(Or, equivalently, stick a "do { ... } while (0)" inside the macro).

That solution might be more friendly for auto-indenting editors and also
will make your patch smaller.

Evan Martin
martine at danga.com

More information about the cairo mailing list