package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / prboom / 0001-libpng-1.4.patch
blob0d2a3a5ba8ef4cf9a14455b4f526bb93de8c97b3
1 [PATCH] fix build with libpng 1.4.x
3 In 1.4.x the png_*_NULL defines are gone. Replace them with a normal
4 NULL instead.
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 ---
8 src/SDL/i_sshot.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
11 Index: prboom-2.5.0/src/SDL/i_sshot.c
12 ===================================================================
13 --- prboom-2.5.0.orig/src/SDL/i_sshot.c
14 +++ prboom-2.5.0/src/SDL/i_sshot.c
15 @@ -231,7 +231,7 @@ int I_ScreenShot (const char *fname)
16 if (fp)
18 png_struct *png_ptr = png_create_write_struct(
19 - PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn);
20 + PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn);
22 if (png_ptr)
24 @@ -279,7 +279,7 @@ int I_ScreenShot (const char *fname)
25 break;
28 - png_destroy_write_struct(&png_ptr, png_infopp_NULL);
29 + png_destroy_write_struct(&png_ptr, NULL);
31 fclose(fp);