notes, setlinebuf

git-svn-id: svn+q:///qpdf/trunk@837 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-10-20 01:46:56 +00:00
parent b477b36590
commit cd32c70b65
5 changed files with 20 additions and 2 deletions

View File

@ -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

2
config-mingw Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./configure --disable-test-compare-images --enable-build-external-libs --with-buildrules=mingw

2
config-msvc Executable file
View File

@ -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

View File

@ -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)

View File

@ -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];