X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjdatadst.cxx;h=547eb2fda4e889cbf3ffc48a33b8934003c1cd1f;hb=066996143ee597cc94ffc6d27751301931afad30;hp=3b85057033088a5165efae472ad333dd43262b58;hpb=fea9426f960497d2d9124ab532d2097f2915678f;p=gdcm.git diff --git a/src/jdatadst.cxx b/src/jdatadst.cxx index 3b850570..547eb2fd 100644 --- a/src/jdatadst.cxx +++ b/src/jdatadst.cxx @@ -19,6 +19,11 @@ /* 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 */ @@ -159,8 +164,8 @@ jpeg_stdio_dest (j_compress_ptr cinfo, std::ofstream * outfile) } 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(init_destination); + dest->pub.empty_output_buffer = reinterpret_cast(empty_output_buffer); + dest->pub.term_destination = reinterpret_cast(term_destination); dest->outfile = outfile; }