[cairo-commit] 2 commits - test/pdf-tagged-text.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 7 05:38:06 UTC 2021


 test/pdf-tagged-text.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 10911342584fce363579ecd67faccd169150b7d7
Merge: ed017e10f ada76e80d
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Aug 7 05:38:04 2021 +0000

    Merge branch 'MMAP-bug' into 'master'
    
    Fixed compile-time error on platforms without MMAP.
    
    See merge request cairo/cairo!225

commit ada76e80db4c24afc9b777db1c872ad07804b673
Author: Rick Yorgason <rick at firefang.com>
Date:   Sun Aug 1 17:34:14 2021 -0700

    Fixed compile-time error on platforms without MMAP.

diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c
index 1e94edf1e..8908eb25d 100644
--- a/test/pdf-tagged-text.c
+++ b/test/pdf-tagged-text.c
@@ -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)


More information about the cairo-commit mailing list