public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-puzzle/shaaft/files: shaaft-0.5.0-libpng15.patch
@ 2011-09-17 16:22 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-09-17 16:22 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/09/17 16:22:20

  Added:                shaaft-0.5.0-libpng15.patch
  Log:
  Fix building with libpng15 wrt #383247 by Diego Elio Pettenò
  
  (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch?rev=1.1&content-type=text/plain

Index: shaaft-0.5.0-libpng15.patch
===================================================================
--- utilssdl/PNG.cpp
+++ utilssdl/PNG.cpp
@@ -45,7 +45,7 @@
 {
     png_uint_32 check;
 
-    check = fwrite( data, 1, length, (FILE *)(png->io_ptr));
+    check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png)));
     if( check != length)
     {
 	png_error( png, "Write Error");
@@ -72,7 +72,7 @@
 	return false;
     }
 
-    if( setjmp(_png->jmpbuf))
+    if( setjmp(png_jmpbuf(_png)))
     {
 	fclose( fp);
 	png_destroy_write_struct(&_png, (png_infopp)NULL);






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-17 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-17 16:22 [gentoo-commits] gentoo-x86 commit in games-puzzle/shaaft/files: shaaft-0.5.0-libpng15.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox