From ef5901584a28f319639c0ac22b83a7039c78ae9d Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sat, 30 Mar 2013 16:15:48 +0100 Subject: 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. --- plugingui/image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui') 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"); } -- cgit v1.2.3