[poppler] glib/poppler-document.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 3 08:20:36 UTC 2021


 glib/poppler-document.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 310a336a73827e387adf65a372463db93128d210
Author: Christian Persch <chpe at src.gnome.org>
Date:   Fri Dec 3 01:03:34 2021 +0100

    glib: Include glib.h before using defines from it
    
    Include glib.h which provides G_OS_WIN32.
    
    https://gitlab.freedesktop.org/poppler/poppler/-/issues/1180

diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index 6d954dcd..cd3e4047 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -27,6 +27,8 @@
 #include "config.h"
 #include <cstring>
 
+#include <glib.h>
+
 #ifndef G_OS_WIN32
 #    include <fcntl.h>
 #    include <sys/stat.h>


More information about the poppler mailing list