/* Expanded data destination object for stdio output */
+extern "C" {
+ typedef boolean(*boolean_jpeg_compress_struct)(jpeg_compress_struct*);
+ typedef void(*void_jpeg_compress_struct)(jpeg_compress_struct*);
+}
+
typedef struct {
struct jpeg_destination_mgr pub; /* public fields */
}
dest = (my_dest_ptr) cinfo->dest;
- dest->pub.init_destination = init_destination;
- dest->pub.empty_output_buffer = empty_output_buffer;
- dest->pub.term_destination = term_destination;
+ dest->pub.init_destination = reinterpret_cast<void_jpeg_compress_struct>(init_destination);
+ dest->pub.empty_output_buffer = reinterpret_cast<boolean_jpeg_compress_struct>(empty_output_buffer);
+ dest->pub.term_destination = reinterpret_cast<void_jpeg_compress_struct>(term_destination);
dest->outfile = outfile;
}