Fix builds without libpng.

This commit is contained in:
Michael R Sweet 2025-02-11 22:59:23 -05:00
parent 1b35321615
commit b81d01f319
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ jobs:
- name: Update Build Environment
run: sudo apt-get update --fix-missing -y
- name: Install Prerequisites
run: sudo apt-get install -y cppcheck zlib1g-dev
run: sudo apt-get install -y cppcheck zlib1g-dev libpng16-dev
- name: Configure PDFio
run: ./configure --enable-debug --enable-sanitizer --enable-maintainer
- name: Build PDFio

View File

@ -3088,7 +3088,6 @@ write_png_tests(pdfio_file_t *pdf, // I - PDF file
else
return (1);
#ifdef HAVE_LIBPNG
////// PDFio PNG image test page...
// Create the page dictionary, object, and stream...
fputs("pdfioDictCreate: ", stdout);
@ -3235,6 +3234,7 @@ write_png_tests(pdfio_file_t *pdf, // I - PDF file
else
return (1);
#ifdef HAVE_LIBPNG
////// PngSuite page
// Create the image objects...
for (i = 0; i < (sizeof(pngsuite_files) / sizeof(pngsuite_files[0])); i ++)