X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e19291405ff3995a32c965da9694f2f20aa02468..fbb7dfffb098c0c1a71f15674fba0d3af9609028:/src/jpeg/jpegint.h diff --git a/src/jpeg/jpegint.h b/src/jpeg/jpegint.h index 95b00d405c..ee99a2e927 100644 --- a/src/jpeg/jpegint.h +++ b/src/jpeg/jpegint.h @@ -164,7 +164,15 @@ struct jpeg_d_main_controller { /* Coefficient buffer control */ struct jpeg_d_coef_controller { +#if defined(__VISAGECPP__) + /* the start input pass in jdcoeft must have a different name than the + // one in jdtrans under VisualAge or else we get a dup symbol error + */ + JMETHOD(void, start_input_pass2, (j_decompress_ptr cinfo)); +#else JMETHOD(void, start_input_pass, (j_decompress_ptr cinfo)); +#endif + JMETHOD(int, consume_data, (j_decompress_ptr cinfo)); JMETHOD(void, start_output_pass, (j_decompress_ptr cinfo)); JMETHOD(int, decompress_data, (j_decompress_ptr cinfo, @@ -280,10 +288,10 @@ struct jpeg_color_quantizer { */ #ifdef RIGHT_SHIFT_IS_UNSIGNED -#define SHIFT_TEMPS INT32 shift_temp; +#define SHIFT_TEMPS JPEG_INT32 shift_temp; #define RIGHT_SHIFT(x,shft) \ ((shift_temp = (x)) < 0 ? \ - (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \ + (shift_temp >> (shft)) | ((~((JPEG_INT32) 0)) << (32-(shft))) : \ (shift_temp >> (shft))) #else #define SHIFT_TEMPS