mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
binary stdout on windows
git-svn-id: svn+q:///qpdf/trunk@680 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
parent
5d1f0bee0c
commit
2ad107fb7a
@ -1,4 +1,3 @@
|
||||
|
||||
#include <qpdf/Pl_Flate.hh>
|
||||
#include <qpdf/Pl_StdioFile.hh>
|
||||
|
||||
@ -6,6 +5,7 @@
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef _WIN32
|
||||
# include <io.h>
|
||||
#else
|
||||
@ -63,6 +63,9 @@ int main(int argc, char* argv[])
|
||||
usage();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
Pl_StdioFile* out = new Pl_StdioFile("stdout", stdout);
|
||||
Pl_Flate* flate = new Pl_Flate("flate", out, action);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user