mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: fix JPEG-2000 images plugin build against Jasper v2.0.20+
JAS_VERSION is defined as string so bumping the required version Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e53ab7ebed
commit
0008f38092
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
project(kimgio)
|
||||
|
||||
macro_optional_find_package(Jasper)
|
||||
macro_optional_find_package(Jasper 2.0.20)
|
||||
set_package_properties(Jasper PROPERTIES
|
||||
URL "http://www.ece.uvic.ca/~mdadams/jasper"
|
||||
PURPOSE "Support for JPEG-2000 images"
|
||||
|
|
|
@ -103,13 +103,13 @@ static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
|||
stream->bufmode_ |= bufmode & JAS_STREAM_BUFMODEMASK;
|
||||
}
|
||||
|
||||
static int qiodevice_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||
static int qiodevice_read(jas_stream_obj_t *obj, char *buf, unsigned cnt)
|
||||
{
|
||||
QIODevice *io = (QIODevice*) obj;
|
||||
return io->read(buf, cnt);
|
||||
}
|
||||
|
||||
static int qiodevice_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||
static int qiodevice_write(jas_stream_obj_t *obj, const char *buf, unsigned cnt)
|
||||
{
|
||||
QIODevice *io = (QIODevice*) obj;
|
||||
return io->write(buf, cnt);
|
||||
|
|
Loading…
Add table
Reference in a new issue