Skip to content

Commit

Permalink
Fix use of png_ptr->jmp_buf
Browse files Browse the repository at this point in the history
This has been replaced by `png_jmpbuf(png_ptr)` as it is now a compiler error
with libPNG 1.5.
  • Loading branch information
Sharpie committed Jul 21, 2011
1 parent 39868d3 commit 1f6278d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion swarm/src/tkobjc/Pixmap.m
Expand Up @@ -103,7 +103,7 @@ @implementation Pixmap
png_destroy_read_struct (&read_ptr, NULL, NULL);
raiseEvent (PixmapError, "Could not create PNG info struct");
}
if (setjmp (read_ptr->jmpbuf))
if (setjmp (png_jmpbuf(read_ptr)))
{
png_destroy_read_struct (&read_ptr, &read_info_ptr, (png_infopp)NULL);
fclose (fp);
Expand Down
2 changes: 1 addition & 1 deletion swarm/src/tkobjc/internal.m
Expand Up @@ -1666,7 +1666,7 @@
raiseEvent (PixmapError, "Could not create PNG info struct\n");
}

if (setjmp (png_ptr->jmpbuf))
if (setjmp(png_jmpbuf(png_ptr)))
{
png_destroy_write_struct (&png_ptr, &info_ptr);
fclose (fp);
Expand Down

0 comments on commit 1f6278d

Please sign in to comment.