[poppler] poppler/FDPDFDocBuilder.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 19 00:19:25 UTC 2021
poppler/FDPDFDocBuilder.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5eecc8aaa146a838cbc95a6f19bbeac82fa6164f
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Nov 19 01:05:13 2021 +0100
Fix compile on MSVC
diff --git a/poppler/FDPDFDocBuilder.cc b/poppler/FDPDFDocBuilder.cc
index 88ace7f9..a35e41af 100644
--- a/poppler/FDPDFDocBuilder.cc
+++ b/poppler/FDPDFDocBuilder.cc
@@ -5,7 +5,7 @@
// This file is licensed under the GPLv2 or later
//
// Copyright 2010 Hib Eris <hib at hiberis.nl>
-// Copyright 2010, 2017 Albert Astals Cid <aacid at kde.org>
+// Copyright 2010, 2017, 2021 Albert Astals Cid <aacid at kde.org>
// Copyright 2021 Oliver Sander <oliver.sander at tu-dresden.de>
// Copyright 2021 Christian Persch <chpe at src.gnome.org>
//
@@ -40,7 +40,7 @@ std::unique_ptr<PDFDoc> FileDescriptorPDFDocBuilder::buildPDFDoc(const GooString
return {};
FILE *file;
- if (fd == STDIN_FILENO)
+ if (fd == fileno(stdin))
file = stdin;
else
file = fdopen(fd, "rb");
More information about the poppler
mailing list