poppler/StdinCachedFile.cc | 2 +- utils/pdftoppm.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7574912b6c0ff0421c69b6e8c6835957d5126d7d Author: Jonathan Liu <[email protected]> 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 _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
