summaryrefslogtreecommitdiff
path: root/test/any2ppm.c
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-02-18 18:10:20 -0800
committerBryce Harrington <b.harrington@samsung.com>2014-02-25 12:13:34 -0800
commit75e671c29b2f2916c41af46f8c3707539b235674 (patch)
tree7f20d01dd2547fcded4141c8ee96f7b514de5e6f /test/any2ppm.c
parenta346e40ed33e69c7c03be3aa1b7b0065e4ee1d07 (diff)
downloadcairo-75e671c29b2f2916c41af46f8c3707539b235674.tar.gz
test: Quell warning for inclusion of old rsvg header files
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." Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/any2ppm.c')
-rw-r--r--test/any2ppm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c
index e698e5767..af2a43edf 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>