1[PATCH] fix build with libpng 1.4.x 2 3In 1.4.x the png_*_NULL defines are gone. Replace them with a normal 4NULL instead. 5 6Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> 7--- 8 src/SDL/i_sshot.c | 4 ++-- 9 1 file changed, 2 insertions(+), 2 deletions(-) 10 11Index: 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) 17 { 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); 21 22 if (png_ptr) 23 { 24@@ -279,7 +279,7 @@ int I_ScreenShot (const char *fname) 25 break; 26 } 27 } 28- png_destroy_write_struct(&png_ptr, png_infopp_NULL); 29+ png_destroy_write_struct(&png_ptr, NULL); 30 } 31 fclose(fp); 32 } 33