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
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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)
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);
24 @@ -279,7 +279,7 @@ int I_ScreenShot (const char *fname)
28 - png_destroy_write_struct(&png_ptr, png_infopp_NULL);
29 + png_destroy_write_struct(&png_ptr, NULL);