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:
parent
2d085f753b
commit
dd05529db4
|
@ -87,6 +87,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <vips/vips.h>
|
#include <vips/vips.h>
|
||||||
#include <vips/internal.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 );
|
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.
|
* invoked.
|
||||||
*/
|
*/
|
||||||
longjmp( png_jmpbuf( png_ptr ), -1 );
|
longjmp( png_jmpbuf( png_ptr ), -1 );
|
||||||
|
|
Loading…
Reference in New Issue