From 2b74a89bc8342f0b9b737c37d87737caf7b0ea1e Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 1 Jun 2012 05:26:28 +0000 Subject: - update png to 1.5.10 --- math/py-matplotlib/files/patch-_png.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 math/py-matplotlib/files/patch-_png.cpp (limited to 'math/py-matplotlib/files/patch-_png.cpp') diff --git a/math/py-matplotlib/files/patch-_png.cpp b/math/py-matplotlib/files/patch-_png.cpp new file mode 100644 index 000000000000..cfa0202a92c0 --- /dev/null +++ b/math/py-matplotlib/files/patch-_png.cpp @@ -0,0 +1,23 @@ +--- src/_png.cpp.orig 2010-10-12 18:14:42.000000000 +0200 ++++ src/_png.cpp 2012-05-06 06:33:48.000000000 +0200 +@@ -20,6 +20,7 @@ + # include "Python.h" + + # include ++# include + #endif + + // TODO: Un CXX-ify this module +@@ -459,10 +460,10 @@ + + //free the png memory + png_read_end(png_ptr, info_ptr); +-#ifndef png_infopp_NULL ++#ifndef NULL + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + #else +- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + #endif + if (close_file) + { -- cgit v1.2.3