From c217ee0c52967d737af6bac54f81b5d6ab4fec3f Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Wed, 8 Sep 2010 21:17:16 +1000 Subject: [PATCH] Fix checking whether _WIN32 is defined --- poppler/StdinCachedFile.cc | 2 +- utils/pdftoppm.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.2.3