mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- fix build for png-1.4.1
This commit is contained in:
parent
888c9e2f6e
commit
6e7a54ad67
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252097
36
multimedia/libkate/files/patch-tools-kpng.c
Normal file
36
multimedia/libkate/files/patch-tools-kpng.c
Normal file
@ -0,0 +1,36 @@
|
||||
--- tools/kpng.c.orig 2008-08-06 09:06:13.000000000 +0200
|
||||
+++ tools/kpng.c 2010-03-29 09:32:32.000000000 +0200
|
||||
@@ -179,13 +179,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL);
|
||||
+ png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
|
||||
error:
|
||||
- if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL);
|
||||
+ if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL);
|
||||
if (f) fclose(f);
|
||||
return -1;
|
||||
}
|
||||
@@ -224,7 +224,7 @@
|
||||
if (w) *w=png_get_image_width(png_ptr,info_ptr);
|
||||
if (h) *h=png_get_image_height(png_ptr,info_ptr);
|
||||
|
||||
- png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL);
|
||||
+ png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
|
||||
|
||||
/* now read the whole file as a binary blob */
|
||||
fseek(f,0,SEEK_END);
|
||||
@@ -241,7 +241,7 @@
|
||||
return 0;
|
||||
|
||||
error:
|
||||
- if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL);
|
||||
+ if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL);
|
||||
if (f) fclose(f);
|
||||
return -1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user