diff options
author | Jonathan Liu <net147@gmail.com> | 2010-09-09 20:34:03 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2010-09-09 20:35:23 +0100 |
commit | a39f78cff93f0970b31508355b72da5c8b33ea9a (patch) | |
tree | f6b57e749cf33e9685025a16c2fec197ac1330e5 | |
parent | bcc6731c79f69e72b69f8c40bff6e867467da77e (diff) |
Fix checking whether _WIN32 is defined
Bug 29329
-rw-r--r-- | poppler/StdinCachedFile.cc | 2 | ||||
-rw-r--r-- | utils/pdftoppm.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/poppler/StdinCachedFile.cc b/poppler/StdinCachedFile.cc index 5747572d..3a91e62d 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 14950d01..c4cc43b3 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 |