fix for build against libpng16

I am sending you lightweight patch against vips to be able build it
also with libpng16.

They no longer #include string.h in png.h See section XII of [1] for
details.

Petr
This commit is contained in:
John Cupitt 2013-03-01 18:09:47 +00:00
parent 2d085f753b
commit dd05529db4
1 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vips/vips.h>
#include <vips/internal.h>
@ -105,7 +106,7 @@ user_error_function( png_structp png_ptr, png_const_charp error_msg )
{
vips_error( "vipspng", "%s", error_msg );
/* This function must not return, or the default error handler will be
/* This function must not return or the default error handler will be
* invoked.
*/
longjmp( png_jmpbuf( png_ptr ), -1 );