1 |
ssuominen 10/03/09 21:51:22 |
2 |
|
3 |
Added: prboom-2.5.0-libpng14.patch |
4 |
Log: |
5 |
Fix building with libpng14 wrt #308739 by Rafał Mużyło. |
6 |
(Portage version: 2.2_rc66/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-fps/prboom/files/prboom-2.5.0-libpng14.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/prboom/files/prboom-2.5.0-libpng14.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/prboom/files/prboom-2.5.0-libpng14.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: prboom-2.5.0-libpng14.patch |
15 |
=================================================================== |
16 |
--- src/SDL/i_sshot.c |
17 |
+++ src/SDL/i_sshot.c |
18 |
@@ -231,7 +231,7 @@ |
19 |
if (fp) |
20 |
{ |
21 |
png_struct *png_ptr = png_create_write_struct( |
22 |
- PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn); |
23 |
+ PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn); |
24 |
|
25 |
if (png_ptr) |
26 |
{ |
27 |
@@ -279,7 +279,7 @@ |
28 |
break; |
29 |
} |
30 |
} |
31 |
- png_destroy_write_struct(&png_ptr, png_infopp_NULL); |
32 |
+ png_destroy_write_struct(&png_ptr, NULL); |
33 |
} |
34 |
fclose(fp); |
35 |
} |