mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-24 18:34:27 +03:00
Accomodate for antique versions of libpng (as found with the BeOS R5 devkit), which either:
- don't define the png_jmpbuf macro, - have a different name for png_set_expand_gray_1_2_4_to_8(). svn path=/trunk/netsurf/; revision=10069
This commit is contained in:
parent
da54611fb6
commit
093d9567f1
11
image/png.c
11
image/png.c
@ -40,6 +40,17 @@
|
||||
|
||||
#ifdef WITH_PNG
|
||||
|
||||
/* accomodate for old versions of libpng (beware security holes!) */
|
||||
|
||||
#ifndef png_jmpbuf
|
||||
#warning you have an antique libpng
|
||||
#define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
|
||||
#endif
|
||||
|
||||
#if PNG_LIBPNG_VER < 10209
|
||||
#define png_set_expand_gray_1_2_4_to_8(png) png_set_gray_1_2_4_to_8(png)
|
||||
#endif
|
||||
|
||||
/* I hate doing this, but without g_strdup_printf or similar, we're a tad stuck. */
|
||||
#define NSPNG_TITLE_LEN (100)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user