mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 14:40:43 +02:00
Merge branch 'MMAP-bug' into 'master'
Fixed compile-time error on platforms without MMAP. See merge request cairo/cairo!225
This commit is contained in:
commit
1091134258
1 changed files with 2 additions and 0 deletions
|
|
@ -447,6 +447,7 @@ create_document (cairo_surface_t *surface, cairo_t *cr)
|
|||
cairo_tag_end (cr, "Document");
|
||||
}
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
static cairo_test_status_t
|
||||
check_contains_string(cairo_test_context_t *ctx, const void *hay, size_t size, const char *needle)
|
||||
{
|
||||
|
|
@ -456,6 +457,7 @@ check_contains_string(cairo_test_context_t *ctx, const void *hay, size_t size, c
|
|||
cairo_test_log (ctx, "Failed to find expected string in generated PDF: %s\n", needle);
|
||||
return CAIRO_TEST_FAILURE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static cairo_test_status_t
|
||||
check_created_pdf(cairo_test_context_t *ctx, const char* filename)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue