summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-svg.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-06-14 15:34:09 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-06-14 16:46:32 +0200
commit5cb18fcec7d973595e4e8ae992ce84836b815ce4 (patch)
treee8a969d4f4facaf7af68c4ef48209a8c09fbb4f8 /boilerplate/cairo-boilerplate-svg.c
parent0cbe3d1020fae0fdd601f48ca8c67861390c78ad (diff)
downloadcairo-5cb18fcec7d973595e4e8ae992ce84836b815ce4.tar.gz
test: Fix compilation on win32
The Microsoft C Compiler does not accept empty-initialized arrays: cairo-boilerplate-win32-printing.c(373) : error C2059: syntax error : '}' cairo-boilerplate-win32-printing.c(374) : warning C4034: sizeof returns 0
Diffstat (limited to 'boilerplate/cairo-boilerplate-svg.c')
-rw-r--r--boilerplate/cairo-boilerplate-svg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/boilerplate/cairo-boilerplate-svg.c b/boilerplate/cairo-boilerplate-svg.c
index b5a7d0d73..10fddb6b9 100644
--- a/boilerplate/cairo-boilerplate-svg.c
+++ b/boilerplate/cairo-boilerplate-svg.c
@@ -26,6 +26,8 @@
#include "cairo-boilerplate-private.h"
+#if CAIRO_CAN_TEST_SVG_SURFACE
+
#include <cairo-svg.h>
#include <cairo-svg-surface-private.h>
#include <cairo-paginated-surface-private.h>
@@ -274,7 +276,6 @@ _cairo_boilerplate_svg_force_fallbacks (cairo_surface_t *abstract_surface,
}
static const cairo_boilerplate_target_t targets[] = {
-#if CAIRO_CAN_TEST_SVG_SURFACE
/* It seems we should be able to round-trip SVG content perfectly
* through librsvg and cairo, but for some mysterious reason, some
* systems get an error of 1 for some pixels on some of the text
@@ -332,6 +333,11 @@ static const cairo_boilerplate_target_t targets[] = {
_cairo_boilerplate_svg_cleanup,
NULL, NULL, FALSE, TRUE, TRUE
},
-#endif
};
CAIRO_BOILERPLATE (svg, targets)
+
+#else
+
+CAIRO_NO_BOILERPLATE (svg)
+
+#endif