From 355b88c15d2dcafe4074b725e2165511df02f2dd Mon Sep 17 00:00:00 2001 From: Freeimage Date: Tue, 31 Jan 2006 21:26:11 +0000 Subject: fixed various minor warnings occuring under icc9 and bcc32, added MSVC project and compiler directives to build a 'standard' WIN32 DLL --- libopenjpeg/cio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libopenjpeg/cio.c') diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c index c9c59bc2..d8e0105d 100644 --- a/libopenjpeg/cio.c +++ b/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; } -- cgit v1.2.3