diff options
-rw-r--r-- | README.windows | 14 | ||||
-rwxr-xr-x | config-mingw | 2 | ||||
-rwxr-xr-x | config-msvc | 2 | ||||
-rw-r--r-- | qpdf/qpdf.cc | 2 | ||||
-rw-r--r-- | qpdf/test_driver.cc | 2 |
5 files changed, 20 insertions, 2 deletions
diff --git a/README.windows b/README.windows index 706e2e71..d4b37335 100644 --- a/README.windows +++ b/README.windows @@ -25,6 +25,13 @@ cygwin, though it's possible that it could be made to work with gcc From your MSYS prompt, run ./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=mingw + +or + + ./config-mingw + +and then + make Add the absolute path to the libqpdf/build directory to your PATH. @@ -52,6 +59,13 @@ shell. Configure as follows: CC=cl CXX="cl /TP /GR" CPPFLAGS=-DHAVE_VSNPRINTF ./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=msvc + +or + + ./config-msvc + +and then + make The -DHAVE_VSNPRINTF is really only required for things that include diff --git a/config-mingw b/config-mingw new file mode 100755 index 00000000..68483fa6 --- /dev/null +++ b/config-mingw @@ -0,0 +1,2 @@ +#!/bin/sh +./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=mingw diff --git a/config-msvc b/config-msvc new file mode 100755 index 00000000..6c04b1f8 --- /dev/null +++ b/config-msvc @@ -0,0 +1,2 @@ +#!/bin/sh +CC=cl CXX="cl /TP /GR" CPPFLAGS=-DHAVE_VSNPRINTF ./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=msvc diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index 7f7751c8..f9af8609 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -534,7 +534,7 @@ parse_encrypt_options( int main(int argc, char* argv[]) { whoami = QUtil::getWhoami(argv[0]); - setlinebuf(stdout); + setvbuf(stdout, (char *) NULL, _IOLBF, 0); // For libtool's sake.... if (strncmp(whoami, "lt-", 3) == 0) diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc index f5ea46bd..68866b54 100644 --- a/qpdf/test_driver.cc +++ b/qpdf/test_driver.cc @@ -320,7 +320,7 @@ void runtest(int n, char const* filename) int main(int argc, char* argv[]) { - setlinebuf(stdout); + setvbuf(stdout, (char *) NULL, _IOLBF, 0); if ((whoami = strrchr(argv[0], '/')) == NULL) { whoami = argv[0]; |