Commit 5d1f0bee0c77b12d44583c9fef2594f8d57c7d04
1 parent
a9987ab5
io, not unistd on windows
git-svn-id: svn+q:///qpdf/trunk@679 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
5 additions
and
1 deletions
zlib-flate/zlib-flate.cc
| @@ -6,7 +6,11 @@ | @@ -6,7 +6,11 @@ | ||
| 6 | #include <string.h> | 6 | #include <string.h> |
| 7 | #include <iostream> | 7 | #include <iostream> |
| 8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 9 | -#include <unistd.h> | 9 | +#ifdef _WIN32 |
| 10 | +# include <io.h> | ||
| 11 | +#else | ||
| 12 | +# include <unistd.h> | ||
| 13 | +#endif | ||
| 10 | 14 | ||
| 11 | static char const* whoami = 0; | 15 | static char const* whoami = 0; |
| 12 | 16 |