[poppler] goo/JpegWriter.cc poppler/ImageEmbeddingUtils.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 16 18:52:21 UTC 2023


 goo/JpegWriter.cc              |    2 +-
 poppler/ImageEmbeddingUtils.cc |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2986f06c7cc9d64a506ebe861b8bf38f73386e86
Author: Jordan Abrahams-Whitehead <ajordanr at google.com>
Date:   Tue May 16 18:52:19 2023 +0000

    Add missing #include <cstdio> prior to jpeglib.h
    
    Fixes #1398

diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
index ca69fd05..566ee38f 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 0c13fe96..07b9dfb6 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>
 }


More information about the poppler mailing list