#ifndef __BIO_H
#define __BIO_H
+
+#include <stddef.h> /* ptrdiff_t */
+
/**
@file bio.h
@brief Implementation of an individual bit input-output (BIO)
Create a new BIO handle
@return Returns a new BIO handle if successful, returns NULL otherwise
*/
-opj_bio_t* bio_create();
+opj_bio_t* bio_create(void);
/**
Destroy a previously created BIO handle
@param bio BIO handle to destroy
@param bio BIO handle
@return Returns the number of bytes written
*/
-int bio_numbytes(opj_bio_t *bio);
+ptrdiff_t bio_numbytes(opj_bio_t *bio);
/**
Init encoder
@param bio BIO handle