Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=604702
--- Comment #1 from Adam Goode adam@spicenitz.org 2010-06-16 10:38:51 EDT --- In fact, here is the code from libtiff that works around the problem without breaking libjpeg:
/* The windows RPCNDR.H file defines boolean, but defines it with the unsigned char size. You should compile JPEG library using appropriate definitions in jconfig.h header, but many users compile library in wrong way. That causes errors of the following type:
"JPEGLib: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464"
For such users we wil fix the problem here. See install.doc file from the JPEG library distribution for details. */
/* Define "boolean" as unsigned char, not int, per Windows custom. */ #if defined(__WIN32__) && !defined(__MINGW32__) # ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ typedef unsigned char boolean; # endif # define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ #endif
#include "jpeglib.h" #include "jerror.h"