Hello,

Just thought i'll share some quirks i stumbled on while
using the jpeg libraries (and wrappers that come with DCMTK)
and compiling them with another project.

The problem was that ijg defines boolean differently from
other system hearders (on windows). Luckily ijg allows to change
the definition of "boolean" in the headers (in my case: from int to
unsigned char).

Although the change makes my project happy, other parts of
dcmtk 3.5.3 are not, while this went smoothly in 3.5.2.

Browsing through the dcmtk files I think following declarations
might have to be changed (unix diff format):

djdijg8.cxx:
97c97
< int DJDIJG8fillInputBuffer(j_decompress_ptr);
---
> ijg_boolean DJDIJG8fillInputBuffer(j_decompress_ptr);

125c125
< int DJDIJG8fillInputBuffer(j_decompress_ptr cinfo)
---
> ijg_boolean DJDIJG8fillInputBuffer(j_decompress_ptr cinfo)


djeijg8.cxx:
85c85
< int DJEIJG8emptyOutputBuffer(j_compress_ptr cinfo);
---
> ijg_boolean DJEIJG8emptyOutputBuffer(j_compress_ptr cinfo);

115c115
< int DJEIJG8emptyOutputBuffer(j_compress_ptr cinfo)
---
> ijg_boolean DJEIJG8emptyOutputBuffer(j_compress_ptr cinfo)



Regards,
Igor