poppler/FDPDFDocBuilder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5eecc8aaa146a838cbc95a6f19bbeac82fa6164f Author: Albert Astals Cid <aa...@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 <h...@hiberis.nl> -// Copyright 2010, 2017 Albert Astals Cid <aa...@kde.org> +// Copyright 2010, 2017, 2021 Albert Astals Cid <aa...@kde.org> // Copyright 2021 Oliver Sander <oliver.san...@tu-dresden.de> // Copyright 2021 Christian Persch <c...@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");