[cairo] [PATCH 2/8] test: Quell warning for inclusion of old rsvg header files

Bryce W. Harrington b.harrington at samsung.com
Fri Feb 21 18:07:06 PST 2014


This silences a warning due to header file deprecated as of libsrvg
2.36.2.  Tested and verified this hackaround on librsvg 2.36.4 and
2.36.1.  No need to change version dependencies.

  In file included from test/any2ppm.c:73:0:
  /usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:27:2: warning:
  #warning "Including <librsvg/rsvg-cairo.h> directly is deprecated."

Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
 test/any2ppm.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/any2ppm.c b/test/any2ppm.c
index e698e57..af2a43e 100644
--- a/test/any2ppm.c
+++ b/test/any2ppm.c
@@ -70,8 +70,10 @@
 
 #if CAIRO_CAN_TEST_SVG_SURFACE
 #include <librsvg/rsvg.h>
+#ifndef RSVG_CAIRO_H
 #include <librsvg/rsvg-cairo.h>
 #endif
+#endif
 
 #if CAIRO_HAS_SPECTRE
 #include <libspectre/spectre.h>
-- 
1.7.9.5


More information about the cairo mailing list