mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-02-26 05:42:49 +01:00
Fix builds without libpng.
This commit is contained in:
parent
1b35321615
commit
b81d01f319
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Update Build Environment
|
- name: Update Build Environment
|
||||||
run: sudo apt-get update --fix-missing -y
|
run: sudo apt-get update --fix-missing -y
|
||||||
- name: Install Prerequisites
|
- 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
|
- name: Configure PDFio
|
||||||
run: ./configure --enable-debug --enable-sanitizer --enable-maintainer
|
run: ./configure --enable-debug --enable-sanitizer --enable-maintainer
|
||||||
- name: Build PDFio
|
- name: Build PDFio
|
||||||
|
@ -3088,7 +3088,6 @@ write_png_tests(pdfio_file_t *pdf, // I - PDF file
|
|||||||
else
|
else
|
||||||
return (1);
|
return (1);
|
||||||
|
|
||||||
#ifdef HAVE_LIBPNG
|
|
||||||
////// PDFio PNG image test page...
|
////// PDFio PNG image test page...
|
||||||
// Create the page dictionary, object, and stream...
|
// Create the page dictionary, object, and stream...
|
||||||
fputs("pdfioDictCreate: ", stdout);
|
fputs("pdfioDictCreate: ", stdout);
|
||||||
@ -3235,6 +3234,7 @@ write_png_tests(pdfio_file_t *pdf, // I - PDF file
|
|||||||
else
|
else
|
||||||
return (1);
|
return (1);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBPNG
|
||||||
////// PngSuite page
|
////// PngSuite page
|
||||||
// Create the image objects...
|
// Create the image objects...
|
||||||
for (i = 0; i < (sizeof(pngsuite_files) / sizeof(pngsuite_files[0])); i ++)
|
for (i = 0; i < (sizeof(pngsuite_files) / sizeof(pngsuite_files[0])); i ++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user