summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2013-03-30 16:15:48 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2013-03-30 16:15:48 +0100
commitef5901584a28f319639c0ac22b83a7039c78ae9d (patch)
tree741da8bf8db56041355fb3b24757bbf439298f00
parentfbbfa1144e7bdaa0071ab7d27e447056e2e423c1 (diff)
Removed const from typecast when calling png_sig_cmp to enable compatibility with libpng 1.2.
Also changed dependency (in configure.in) from libpng 1.5 to libpng 1.2.
-rw-r--r--configure.in2
-rw-r--r--plugingui/image.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 8d5700a..ed1ff25 100644
--- a/configure.in
+++ b/configure.in
@@ -257,7 +257,7 @@ PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.21)
dnl ======================
dnl Check for sndfile
dnl ======================
-PKG_CHECK_MODULES(PNG, libpng >= 1.5)
+PKG_CHECK_MODULES(PNG, libpng >= 1.2)
dnl ======================
dnl Check for the pthread library
diff --git a/plugingui/image.cc b/plugingui/image.cc
index 4864007..40da520 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -82,7 +82,7 @@ void GUI::Image::load(const char* data, size_t size)
const char *header = data;
// test for it being a png:
- if(png_sig_cmp((const png_byte*)header, 0, 8)) {
+ if(png_sig_cmp((png_byte*)header, 0, 8)) {
abort_("[read_png_file] File is not recognized as a PNG file");
}