--- lib/fxpngio.cpp.orig 2012-02-29 20:46:47.000000000 +0100 +++ lib/fxpngio.cpp 2012-02-29 20:46:48.000000000 +0100 @@ -124,7 +124,7 @@ } // Set error handling - if (setjmp (png_jmpbuf (png_ptr))) { + if (setjmp ((*png_set_longjmp_fn((png_ptr), (png_longjmp_ptr)longjmp, sizeof (jmp_buf))))) { // Free all of the memory associated with the png_ptr and info_ptr png_destroy_read_struct(&png_ptr,&info_ptr,(png_infopp)NULL); @@ -238,7 +238,7 @@ } // Set error handling. - if (setjmp (png_jmpbuf (png_ptr))) { + if (setjmp ((*png_set_longjmp_fn((png_ptr), (png_longjmp_ptr)longjmp, sizeof (jmp_buf))))) { png_destroy_write_struct(&png_ptr,&info_ptr); return false; }