summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-06-09 08:36:05 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2014-06-09 08:36:05 (GMT)
commit9484b1df333a60b72bcb8eb02c934998b82bcfda (patch)
treefa42d1d4396fc9c48230e770375c6398583ea417
parentd8af6b79ab624a323319cd3fe1454813fb2ecf7c (diff)
downloadalphagen-9484b1df333a60b72bcb8eb02c934998b82bcfda.tar.gz
alphagen-9484b1df333a60b72bcb8eb02c934998b82bcfda.tar.bz2
The png_sizeof() macro was made private in libpng 1.5.0.
Not exposed to applications, so just use regular sizeof.
-rw-r--r--src/alphagen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alphagen.c b/src/alphagen.c
index d37b36c..2510e5e 100644
--- a/src/alphagen.c
+++ b/src/alphagen.c
@@ -415,7 +415,7 @@ bool image_write_png(char *file_name, struct image *img)
/* pack pixels into bytes */
png_set_packing(png_ptr);
- if (img->height > PNG_UINT_32_MAX/png_sizeof(png_bytep)) {
+ if (img->height > PNG_UINT_32_MAX / sizeof(png_bytep)) {
png_error (png_ptr, "Image is too tall to process in memory");
return false;
}