From c1180d1f3d0c13704ed4406cbc341fe1f90b280f Mon Sep 17 00:00:00 2001 From: Robert Coup Date: Wed, 27 Nov 2013 15:39:15 +1300 Subject: [PATCH] Add CAIRO_FORMAT_INVALID Fixes https://github.com/LearnBoost/node-canvas/issues/342 --- src/PNG.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PNG.h b/src/PNG.h index ed6d198..d3ba4f1 100644 --- a/src/PNG.h +++ b/src/PNG.h @@ -15,6 +15,10 @@ #define unlikely(expr) (expr) #endif +#ifndef CAIRO_FORMAT_INVALID +#define CAIRO_FORMAT_INVALID -1 +#endif + static void canvas_png_flush(png_structp png_ptr) { /* Do nothing; fflush() is said to be just a waste of energy. */ (void) png_ptr; /* Stifle compiler warning */