blob: 054967d6555cb7696f25ddf073ad826f57eec834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/png_img.c
+++ src/png_img.c
@@ -18,6 +18,7 @@
#include MS_GL_H
+#include <zlib.h>
#include <png.h>
#include "clib/str_utils.h"
@@ -69,7 +70,7 @@
info_ptr = png_create_info_struct (png_ptr);
if (info_ptr == NULL)
yyerror ("png_img: could not create PNG info structure");
- if (setjmp (png_ptr->jmpbuf)) yyerror ("png_img: could not setjmp");
+ if (setjmp (png_jmpbuf(png_ptr))) yyerror ("png_img: could not setjmp");
png_init_io (png_ptr, outfile);
png_set_compression_level (png_ptr, compression_level);
|