[extremetuxracer] 02/05: Add libpng16-transition.patch
Markus Koschany
apo-guest at moszumanska.debian.org
Fri Jan 8 17:59:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository extremetuxracer.
commit 34cd88eff5c41468ea619022d1e403fd6ffb9380
Author: Markus Koschany <apo at debian.org>
Date: Fri Jan 8 18:36:39 2016 +0100
Add libpng16-transition.patch
---
debian/patches/libpng16-transition.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 25 insertions(+)
diff --git a/debian/patches/libpng16-transition.patch b/debian/patches/libpng16-transition.patch
new file mode 100644
index 0000000..9963a48
--- /dev/null
+++ b/debian/patches/libpng16-transition.patch
@@ -0,0 +1,24 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 8 Jan 2016 18:36:18 +0100
+Subject: libpng16 transition
+
+---
+ src/ppgltk/images/png_reader.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/ppgltk/images/png_reader.cpp b/src/ppgltk/images/png_reader.cpp
+index 2639df3..4415745 100644
+--- a/src/ppgltk/images/png_reader.cpp
++++ b/src/ppgltk/images/png_reader.cpp
+@@ -19,6 +19,11 @@
+
+ #include "png_reader.h"
+
++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
++#define int_p_NULL NULL
++#define png_infopp_NULL NULL
++#endif
++
+ namespace pp {
+
+ ReaderPNG::ReaderPNG(const char *fileName)
diff --git a/debian/patches/series b/debian/patches/series
index 3fb5b6e..c09eb86 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ fix_segfault_in_race_select_menu.diff
start-in-window-mode.patch
fix-d-niehoff_experience-courses.patch
Mayhem-report.patch
+libpng16-transition.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/extremetuxracer.git
More information about the Pkg-games-commits
mailing list