remove deprecated v1 style function opj_decode and opj_decode_with_info
[openjpeg.git] / libopenjpeg / bio.h
index 764d7cb2e92a51ea2a6cbbb1750de837e06ed3aa..cb3f37deb6462cb0ac6cd77ff3169d66979138c0 100644 (file)
@@ -31,6 +31,9 @@
 
 #ifndef __BIO_H
 #define __BIO_H
+
+#include <stddef.h> /* ptrdiff_t */
+
 /** 
 @file bio.h
 @brief Implementation of an individual bit input-output (BIO)
@@ -75,7 +78,7 @@ Number of bytes written.
 @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