X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bfbbc0efb6ed51fa366f49309b092f808b4df63..8f48176bbfdf0216130e45c8aacb235c596b9629:/src/jpeg/jdinput.c diff --git a/src/jpeg/jdinput.c b/src/jpeg/jdinput.c index 324d0ffe0c..c89b75de58 100644 --- a/src/jpeg/jdinput.c +++ b/src/jpeg/jdinput.c @@ -15,17 +15,12 @@ #include "jinclude.h" #include "jpeglib.h" -#if defined(__VISAGECPP__) -/* Visual Age fixups for multiple declarations */ -# define start_input_pass start_input_pass2 /* already in jcmaint.c */ -#endif - /* Private state */ typedef struct { struct jpeg_input_controller pub; /* public fields */ - boolean inheaders; /* TRUE until first SOS is reached */ + wxjpeg_boolean inheaders; /* TRUE until first SOS is reached */ } my_input_controller; typedef my_input_controller * my_inputctl_ptr; @@ -260,7 +255,11 @@ start_input_pass (j_decompress_ptr cinfo) per_scan_setup(cinfo); latch_quant_tables(cinfo); (*cinfo->entropy->start_pass) (cinfo); +#if defined(__VISAGECPP__) + (*cinfo->coef->start_input_pass2) (cinfo); +#else (*cinfo->coef->start_input_pass) (cinfo); +#endif cinfo->inputctl->consume_input = cinfo->coef->consume_data; } @@ -384,8 +383,3 @@ jinit_input_controller (j_decompress_ptr cinfo) inputctl->inheaders = TRUE; } -#if defined(__VISAGECPP__) -# ifdef start_input_pass2 -# undef start_input_pass2 -# endif -#endif