Permalink
Browse files

Add CAIRO_FORMAT_INVALID

Fixes #342
  • Loading branch information...
rcoup committed Nov 27, 2013
1 parent ce6de78 commit c1180d1f3d0c13704ed4406cbc341fe1f90b280f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/PNG.h
View
@@ -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 */

0 comments on commit c1180d1

Please sign in to comment.