X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bfbbc0efb6ed51fa366f49309b092f808b4df63..4ac725a3b3cc829e39c91173aaeb61132d4a231c:/src/jpeg/jpegint.h diff --git a/src/jpeg/jpegint.h b/src/jpeg/jpegint.h index 65091f4f08..ee99a2e927 100644 --- a/src/jpeg/jpegint.h +++ b/src/jpeg/jpegint.h @@ -142,11 +142,6 @@ struct jpeg_decomp_master { boolean is_dummy_pass; /* True during 1st pass for 2-pass quant */ }; -#if defined(__VISAGECPP__) -/* Visual Age fixups for multiple declarations */ -# define start_input_pass start_input_pass2 /* already in jcmaint.c */ -#endif - /* Input control module */ struct jpeg_input_controller { JMETHOD(int, consume_input, (j_decompress_ptr cinfo)); @@ -159,12 +154,6 @@ struct jpeg_input_controller { boolean eoi_reached; /* True when EOI has been consumed */ }; -#if defined(__VISAGECPP__) -# ifdef start_input_pass2 -# undef start_input_pass2 -# endif -#endif - /* Main buffer control (downsampled-data buffer) */ struct jpeg_d_main_controller { JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode)); @@ -175,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,