From 9484b1df333a60b72bcb8eb02c934998b82bcfda Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 9 Jun 2014 09:36:05 +0100 Subject: The png_sizeof() macro was made private in libpng 1.5.0. Not exposed to applications, so just use regular sizeof. --- src/alphagen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3