[poppler] Branch 'poppler-0.14' - poppler/StdinCachedFile.cc utils/pdftoppm.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu Sep 9 12:35:31 PDT 2010
poppler/StdinCachedFile.cc | 2 +-
utils/pdftoppm.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a39f78cff93f0970b31508355b72da5c8b33ea9a
Author: Jonathan Liu <net147 at gmail.com>
Date: Thu Sep 9 20:34:03 2010 +0100
Fix checking whether _WIN32 is defined
Bug 29329
diff --git a/poppler/StdinCachedFile.cc b/poppler/StdinCachedFile.cc
index 5747572..3a91e62 100644
--- a/poppler/StdinCachedFile.cc
+++ b/poppler/StdinCachedFile.cc
@@ -25,7 +25,7 @@ size_t StdinCacheLoader::init(GooString *dummy, CachedFile *cachedFile)
size_t read, size = 0;
char buf[CachedFileChunkSize];
-#if _WIN32
+#ifdef _WIN32
setmode(fileno(stdin), O_BINARY);
#endif
diff --git a/utils/pdftoppm.cc b/utils/pdftoppm.cc
index 14950d0..c4cc43b 100644
--- a/utils/pdftoppm.cc
+++ b/utils/pdftoppm.cc
@@ -183,7 +183,7 @@ static void savePageSlice(PDFDoc *doc,
bitmap->writePNMFile(ppmFile);
}
} else {
-#if _WIN32
+#ifdef _WIN32
setmode(fileno(stdout), O_BINARY);
#endif
More information about the poppler
mailing list