diff options
author | Carsten Teibes | 2013-10-01 03:36:39 +0200 |
---|---|---|
committer | Carsten Teibes | 2013-10-01 03:36:39 +0200 |
commit | 628c71bd47b0bd951ade8c4c934dbc2ff3ec438f (patch) | |
tree | 755640ff919e8a89c6fe8d50bd00c31b47ff732a /libpng.patch | |
download | aur-628c71bd47b0bd951ade8c4c934dbc2ff3ec438f.tar.gz |
[add] smw-svn
Diffstat (limited to 'libpng.patch')
-rw-r--r-- | libpng.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libpng.patch b/libpng.patch new file mode 100644 index 000000000000..acfd9c5b28d7 --- /dev/null +++ b/libpng.patch @@ -0,0 +1,29 @@ +Index: _src/savepng.cpp +=================================================================== +--- _src/savepng.cpp (revision 6) ++++ _src/savepng.cpp (working copy) +@@ -94,7 +94,11 @@ + }
+
+ /* Set error handling. */
++#if PNG_LIBPNG_VER > 10399
++ if (setjmp(png_jmpbuf(png_ptr)))
++#else
+ if (setjmp(png_ptr->jmpbuf))
++#endif
+ {
+ /* If we get here, we had a problem reading the file */
+ IMG_SetError("Error writing the PNG file");
+@@ -142,10 +146,10 @@ + done:
+ if (row_pointers)
+ delete [] row_pointers;
+-
++#if PNG_LIBPNG_VER <= 10399
+ if (info_ptr->palette)
+ delete info_ptr->palette;
+-
++#endif
+ png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
+
+
|