setjmp #4

catesandrew opened this Issue Jun 12, 2011 · 4 comments


None yet
2 participants

replace setjmp.

I was getting an error: dereferencing pointer to incomplete type.
Googling I found that we should be using png_jmpbuf.

I replace line 337 with this and it compiled fine.
if (setjmp(png_jmpbuf(png_ptr))) {


bluesmoon commented Jun 12, 2011

could you tell me which version of libpng you use? I suspect it may depend on that since png_jmpbuf may not be available everywhere.

v1.5.2, right. that makes sense now, i'm not using mac ports.

@bluesmoon bluesmoon reopened this Jun 12, 2011


bluesmoon commented Jun 12, 2011

reopened it, because it's probably worth it to fix it where available. I could do it with an IF DEFINED I think.


bluesmoon commented May 12, 2015

Well, this was fixed with commit 1037293

@bluesmoon bluesmoon closed this May 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment