[PATCH 2/8] test: Quell warning for inclusion of old rsvg header files
"Bryce W. Harrington" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo