X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Flibopenjpeg%2Fcio.c;h=146c5d3d460bdcd2ccb5393ff5efb6ae20227195;hb=b06cbd9177331d793223eac6bf8b2bccf874e7e3;hp=4264fccee9603f7b05e20085e7fa78024bee8856;hpb=bef3bec50f674640783aed3d3c4cbcdd3fb919d7;p=gdcm.git diff --git a/src/gdcmopenjpeg/libopenjpeg/cio.c b/src/gdcmopenjpeg/libopenjpeg/cio.c index 4264fcce..146c5d3d 100644 --- a/src/gdcmopenjpeg/libopenjpeg/cio.c +++ b/src/gdcmopenjpeg/libopenjpeg/cio.c @@ -32,7 +32,7 @@ /* ----------------------------------------------------------------------- */ -opj_cio_t* opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer, int length) { +opj_cio_t* OPJ_CALLCONV opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer, int length) { opj_cp_t *cp = NULL; opj_cio_t *cio = (opj_cio_t*)opj_malloc(sizeof(opj_cio_t)); if(!cio) return NULL; @@ -77,7 +77,7 @@ opj_cio_t* opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer, int length) return cio; } -void opj_cio_close(opj_cio_t *cio) { +void OPJ_CALLCONV opj_cio_close(opj_cio_t *cio) { if(cio) { if(cio->openmode == OPJ_STREAM_WRITE) { /* destroy the allocated buffer */ @@ -94,7 +94,7 @@ void opj_cio_close(opj_cio_t *cio) { /* * Get position in byte stream. */ -int cio_tell(opj_cio_t *cio) { +int OPJ_CALLCONV cio_tell(opj_cio_t *cio) { return cio->bp - cio->start; } @@ -103,7 +103,7 @@ int cio_tell(opj_cio_t *cio) { * * pos : position, in number of bytes, from the beginning of the stream */ -void cio_seek(opj_cio_t *cio, int pos) { +void OPJ_CALLCONV cio_seek(opj_cio_t *cio, int pos) { cio->bp = cio->start + pos; }