| From 2986f06c7cc9d64a506ebe861b8bf38f73386e86 Mon Sep 17 00:00:00 2001 |
| From: Jordan Abrahams-Whitehead <ajordanr@google.com> |
| Date: Tue, 16 May 2023 18:52:19 +0000 |
| Subject: [PATCH] Add missing #include <cstdio> prior to jpeglib.h |
| |
| Fixes #1398 |
| |
| Upstream-Status: Backport |
| Signed-off-by: Ross Burton <ross.burton@arm.com> |
| --- |
| goo/JpegWriter.cc | 2 +- |
| poppler/ImageEmbeddingUtils.cc | 1 + |
| 2 files changed, 2 insertions(+), 1 deletion(-) |
| |
| diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc |
| index ca69fd055..566ee38f8 100644 |
| --- a/goo/JpegWriter.cc |
| +++ b/goo/JpegWriter.cc |
| @@ -23,7 +23,7 @@ |
| #ifdef ENABLE_LIBJPEG |
| |
| # include "poppler/Error.h" |
| - |
| +# include <cstdio> |
| extern "C" { |
| # include <jpeglib.h> |
| } |
| diff --git a/poppler/ImageEmbeddingUtils.cc b/poppler/ImageEmbeddingUtils.cc |
| index 0c13fe968..07b9dfb62 100644 |
| --- a/poppler/ImageEmbeddingUtils.cc |
| +++ b/poppler/ImageEmbeddingUtils.cc |
| @@ -14,6 +14,7 @@ |
| |
| #include <memory> |
| #ifdef ENABLE_LIBJPEG |
| +# include <cstdio> |
| extern "C" { |
| # include <jpeglib.h> |
| } |
| -- |
| GitLab |