From fe18385ffaa7e5b11db86af1e992c0fb1984609a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 15 Jul 2009 04:26:32 +0000 Subject: clean up windows portability code, make remaining test suite pass git-svn-id: svn+q:///qpdf/trunk@686 71b93d88-0707-0410-a8cf-f5a4172ac649 --- zlib-flate/zlib-flate.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'zlib-flate') diff --git a/zlib-flate/zlib-flate.cc b/zlib-flate/zlib-flate.cc index b5ba8e5e..67cd925d 100644 --- a/zlib-flate/zlib-flate.cc +++ b/zlib-flate/zlib-flate.cc @@ -7,11 +7,6 @@ #include #include #include -#ifdef _WIN32 -# include -#else -# include -#endif static char const* whoami = 0; @@ -65,6 +60,7 @@ int main(int argc, char* argv[]) } QUtil::binary_stdout(); + QUtil::binary_stdin(); Pl_StdioFile* out = new Pl_StdioFile("stdout", stdout); Pl_Flate* flate = new Pl_Flate("flate", out, action); @@ -74,7 +70,7 @@ int main(int argc, char* argv[]) bool done = false; while (! done) { - int len = read(0, buf, sizeof(buf)); + int len = fread(buf, 1, sizeof(buf), stdin); if (len <= 0) { done = true; -- cgit v1.2.3-54-g00ecf