summaryrefslogtreecommitdiff
path: root/libopenjpeg/cio.c
diff options
context:
space:
mode:
authorFreeimage <freeimage@aliceadsl.fr>2006-01-31 21:26:11 +0000
committerFreeimage <freeimage@aliceadsl.fr>2006-01-31 21:26:11 +0000
commit355b88c15d2dcafe4074b725e2165511df02f2dd (patch)
treea02e55bae93e0403ab99c168dd1a2f34d8894e00 /libopenjpeg/cio.c
parent74c1b3637e922cac859dbda5cfefee4dc4f365e1 (diff)
fixed various minor warnings occuring under icc9 and bcc32, added MSVC project and compiler directives to build a 'standard' WIN32 DLL
Diffstat (limited to 'libopenjpeg/cio.c')
-rw-r--r--libopenjpeg/cio.c8
1 files changed, 4 insertions, 4 deletions
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;
}