Bug 5544

Summary: svg2png doesn't build
Product: cairo Reporter: Dom Lachowicz <domlachowicz>
Component: svg backendAssignee: Emmanuel Pacaud <emmanuel.pacaud>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high Keywords: patch
Version: 1.1.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Dom Lachowicz 2006-01-08 04:09:02 UTC
Like bug 5306, because stdio.h isn't included, it thinks that fprintf is an
extern, thus breaking gcc 3.4.4.

Index: svg2png.c
===================================================================
RCS file: /cvs/cairo/cairo/test/svg2png.c,v
retrieving revision 1.1
diff -u -p -u -r1.1 svg2png.c
--- svg2png.c   19 Dec 2005 21:59:35 -0000      1.1
+++ svg2png.c   7 Jan 2006 17:11:33 -0000
@@ -26,6 +26,7 @@
  */

 #include <stdlib.h>
+#include <stdio.h>
 #include <gdk/gdk.h>
 #include <gdk/gdkpixbuf.h>
 #include <librsvg/rsvg.h>
Comment 1 Emmanuel Pacaud 2006-01-20 07:40:00 UTC
Fixed in CVS.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.