Commit cd32c70b65fd894bf3afdde3e0100c6de36a5161
1 parent
b477b365
notes, setlinebuf
git-svn-id: svn+q:///qpdf/trunk@837 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
5 changed files
with
20 additions
and
2 deletions
README.windows
| ... | ... | @@ -25,6 +25,13 @@ cygwin, though it's possible that it could be made to work with gcc |
| 25 | 25 | From your MSYS prompt, run |
| 26 | 26 | |
| 27 | 27 | ./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=mingw |
| 28 | + | |
| 29 | +or | |
| 30 | + | |
| 31 | + ./config-mingw | |
| 32 | + | |
| 33 | +and then | |
| 34 | + | |
| 28 | 35 | make |
| 29 | 36 | |
| 30 | 37 | Add the absolute path to the libqpdf/build directory to your PATH. |
| ... | ... | @@ -52,6 +59,13 @@ shell. |
| 52 | 59 | Configure as follows: |
| 53 | 60 | |
| 54 | 61 | CC=cl CXX="cl /TP /GR" CPPFLAGS=-DHAVE_VSNPRINTF ./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=msvc |
| 62 | + | |
| 63 | +or | |
| 64 | + | |
| 65 | + ./config-msvc | |
| 66 | + | |
| 67 | +and then | |
| 68 | + | |
| 55 | 69 | make |
| 56 | 70 | |
| 57 | 71 | The -DHAVE_VSNPRINTF is really only required for things that include | ... | ... |
config-mingw
0 → 100755
config-msvc
0 → 100755
qpdf/qpdf.cc
| ... | ... | @@ -534,7 +534,7 @@ parse_encrypt_options( |
| 534 | 534 | int main(int argc, char* argv[]) |
| 535 | 535 | { |
| 536 | 536 | whoami = QUtil::getWhoami(argv[0]); |
| 537 | - setlinebuf(stdout); | |
| 537 | + setvbuf(stdout, (char *) NULL, _IOLBF, 0); | |
| 538 | 538 | |
| 539 | 539 | // For libtool's sake.... |
| 540 | 540 | if (strncmp(whoami, "lt-", 3) == 0) | ... | ... |
qpdf/test_driver.cc
| ... | ... | @@ -320,7 +320,7 @@ void runtest(int n, char const* filename) |
| 320 | 320 | |
| 321 | 321 | int main(int argc, char* argv[]) |
| 322 | 322 | { |
| 323 | - setlinebuf(stdout); | |
| 323 | + setvbuf(stdout, (char *) NULL, _IOLBF, 0); | |
| 324 | 324 | if ((whoami = strrchr(argv[0], '/')) == NULL) |
| 325 | 325 | { |
| 326 | 326 | whoami = argv[0]; | ... | ... |