Disable deprecation warnings from librsvg

This is a test utility, we don't really care about deprecations.
This commit is contained in:
Emmanuele Bassi 2021-04-18 11:18:10 +01:00
parent b7d38e048f
commit 0bbb9de806
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,7 @@
#endif
#if CAIRO_CAN_TEST_SVG_SURFACE
#define RSVG_DISABLE_DEPRECATION_WARNINGS
#include <librsvg/rsvg.h>
#ifndef RSVG_CAIRO_H
#include <librsvg/rsvg-cairo.h>

View file

@ -27,6 +27,9 @@
#include <stdlib.h>
#include <stdio.h>
/* Disable deprecation warnings coming from librsvg */
#define RSVG_DISABLE_DEPRECATION_WARNINGS
#include <librsvg/rsvg.h>
#define FAIL(msg) \