diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-06-14 15:34:09 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-06-14 16:46:32 +0200 |
commit | 5cb18fcec7d973595e4e8ae992ce84836b815ce4 (patch) | |
tree | e8a969d4f4facaf7af68c4ef48209a8c09fbb4f8 /boilerplate/cairo-boilerplate-pdf.c | |
parent | 0cbe3d1020fae0fdd601f48ca8c67861390c78ad (diff) |
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-pdf.c')
-rw-r--r-- | boilerplate/cairo-boilerplate-pdf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/boilerplate/cairo-boilerplate-pdf.c b/boilerplate/cairo-boilerplate-pdf.c index 53bf55ba..9854344d 100644 --- a/boilerplate/cairo-boilerplate-pdf.c +++ b/boilerplate/cairo-boilerplate-pdf.c @@ -238,10 +238,8 @@ _cairo_boilerplate_pdf_force_fallbacks (cairo_surface_t *abstract_surface, x_pixels_per_inch, y_pixels_per_inch); } -#endif static const cairo_boilerplate_target_t targets[] = { -#if CAIRO_CAN_TEST_PDF_SURFACE { "pdf", "pdf", ".pdf", NULL, CAIRO_SURFACE_TYPE_PDF, @@ -269,6 +267,11 @@ static const cairo_boilerplate_target_t targets[] = { _cairo_boilerplate_pdf_cleanup, NULL, NULL, FALSE, TRUE, TRUE }, -#endif }; CAIRO_BOILERPLATE (pdf, targets) + +#else + +CAIRO_NO_BOILERPLATE (pdf) + +#endif |