From: DRC Date: Mon, 2 May 2011 00:35:50 +0000 (+0000) Subject: Fix I/O redirection in cjpeg and djpeg on Windows X-Git-Tag: 1.1.1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ee81f43cf600551402231a90137923b6dbcd263;p=libjpeg-turbo Fix I/O redirection in cjpeg and djpeg on Windows git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@603 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ed29f8e..f347edd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,13 +178,13 @@ target_link_libraries(jpgtest-static turbojpeg-static) add_executable(cjpeg-static cjpeg.c cdjpeg.c rdbmp.c rdgif.c rdppm.c rdswitch.c rdtarga.c) set_property(TARGET cjpeg-static PROPERTY COMPILE_FLAGS - "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED") + "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") target_link_libraries(cjpeg-static jpeg-static) add_executable(djpeg-static djpeg.c cdjpeg.c rdcolmap.c rdswitch.c wrbmp.c wrgif.c wrppm.c wrtarga.c) set_property(TARGET djpeg-static PROPERTY COMPILE_FLAGS - "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED") + "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") target_link_libraries(djpeg-static jpeg-static) add_executable(jpegtran-static jpegtran.c cdjpeg.c rdswitch.c transupp.c) diff --git a/ChangeLog.txt b/ChangeLog.txt index 160b554..fcea781 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -30,6 +30,9 @@ emulation. [6] Eliminated excessive I/O overhead that occurred when reading BMP files in cjpeg. +[7] Eliminated errors in the output of cjpeg on Windows that occurred when the +application was invoked using I/O redirection (cjpeg output.jpeg). + 1.1.0 ===== diff --git a/sharedlib/CMakeLists.txt b/sharedlib/CMakeLists.txt index 3fd7aaf..7db7e2f 100755 --- a/sharedlib/CMakeLists.txt +++ b/sharedlib/CMakeLists.txt @@ -40,13 +40,13 @@ endif() add_executable(cjpeg ../cjpeg.c ../cdjpeg.c ../rdbmp.c ../rdgif.c ../rdppm.c ../rdswitch.c ../rdtarga.c) set_property(TARGET cjpeg PROPERTY COMPILE_FLAGS - "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED") + "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") target_link_libraries(cjpeg jpeg) add_executable(djpeg ../djpeg.c ../cdjpeg.c ../rdcolmap.c ../rdswitch.c ../wrbmp.c ../wrgif.c ../wrppm.c ../wrtarga.c) set_property(TARGET djpeg PROPERTY COMPILE_FLAGS - "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED") + "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") target_link_libraries(djpeg jpeg) add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c)