Commit f7f2bcae authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Skins: fix compilation with zlib 1.2.6

Close #5964
(cherry picked from commit 18173044)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4615f68f
......@@ -755,7 +755,7 @@ int gzclose_frontend( int fd )
{
void *toClose = currentGzVp;
currentGzVp = NULL; currentGzFd = -1;
return gzclose( toClose );
return gzclose( (gzFile) toClose );
}
return -1;
}
......@@ -764,7 +764,7 @@ int gzread_frontend( int fd, void *p_buffer, size_t i_length )
{
if( currentGzVp != NULL && fd != -1 )
{
return gzread( currentGzVp, p_buffer, i_length );
return gzread( (gzFile) currentGzVp, p_buffer, i_length );
}
return -1;
}
......@@ -773,7 +773,7 @@ int gzwrite_frontend( int fd, const void * p_buffer, size_t i_length )
{
if( currentGzVp != NULL && fd != -1 )
{
return gzwrite( currentGzVp, const_cast<void*>(p_buffer), i_length );
return gzwrite( (gzFile) currentGzVp, const_cast<void*>(p_buffer), i_length );
}
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment