setjmp #4

Closed
catesandrew opened this Issue Jun 12, 2011 · 4 comments

Comments

Projects
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.

http://comments.gmane.org/gmane.comp.graphics.png.devel/4131

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

Owner

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

Owner

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.

Owner

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