Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fe5dd5

Browse files
committed
Merged revisions 8736 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8736 | mdboom | 2010-10-08 14:16:15 -0400 (Fri, 08 Oct 2010) | 2 lines [3082058] build _png.so on aix ........ svn path=/trunk/matplotlib/; revision=8737
1 parent be6a950 commit 7fe5dd5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/_png.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
#include "numpy/arrayobject.h"
2828
#include "mplutils.h"
2929

30+
// As reported in [3082058] build _png.so on aix
31+
#ifdef _AIX
32+
#undef jmpbuf
33+
#endif
34+
3035
// the extension module
3136
class _png_module : public Py::ExtensionModule<_png_module>
3237
{
@@ -163,7 +168,7 @@ Py::Object _png_module::write_png(const Py::Tuple& args)
163168
throw Py::RuntimeError("Could not create info struct");
164169
}
165170

166-
if (setjmp(png_ptr->jmpbuf))
171+
if (setjmp(png_jmpbuf(png_ptr)))
167172
{
168173
throw Py::RuntimeError("Error building image");
169174
}

0 commit comments

Comments
 (0)