diff options
author | Grigori Goronzy <greg@blackbox> | 2011-02-16 19:58:15 +0100 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-02-16 19:58:15 +0100 |
commit | ff88d8bdb9bad44230368fb9420c09ecb5b812da (patch) | |
tree | 68d043f93c130564c5921ef3575599601ab8b481 /test/test.c | |
parent | 7a9b40bfe0ec240a7e74b36e2e2f284d00b1023c (diff) | |
download | libass-ff88d8bdb9bad44230368fb9420c09ecb5b812da.tar.bz2 libass-ff88d8bdb9bad44230368fb9420c09ecb5b812da.tar.xz |
test: fix compilation with libpng 1.5, rename configure switch
libpng 1.5 renamed the jmpbuf variable to jmp_buf. Since direct access
to this variable is deprecated, it makes more sense to use the function
png_jmpbuf() instead.
Also, rename the --enable-png switch to --enable-test to make clear this
is a debugging option.
Initial patch by Alexis Ballier, aballier AT gentoo DOT org.
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c index 2f9cba43..432a44fb 100644 --- a/test/test.c +++ b/test/test.c @@ -53,7 +53,7 @@ static void write_png(char *fname, image_t *img) info_ptr = png_create_info_struct(png_ptr); fp = NULL; - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); return; |