From 19e4edaf3f99e7c27d0966a05a493ff71e36dfc6 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 14 Oct 2013 12:47:49 -0500 Subject: [PATCH] [libpng16] Conditionally compile arm/filter_neon_intrinsics.c if PNG_READ_SUPPORTED and PNG_ARM_NEON_OPT > 0 --- arm/filter_neon_intrinsics.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arm/filter_neon_intrinsics.c b/arm/filter_neon_intrinsics.c index bd248320f..9f6fff62f 100644 --- a/arm/filter_neon_intrinsics.c +++ b/arm/filter_neon_intrinsics.c @@ -10,9 +10,13 @@ * and license in png.h */ -#include #include "pngpriv.h" +#ifdef PNG_READ_SUPPORTED +#if PNG_ARM_NEON_OPT > 0 + +#include + void png_read_filter_row_up_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row) @@ -308,3 +312,5 @@ png_read_filter_row_paeth4_neon(png_row_infop row_info, png_bytep row, } } +#endif /* PNG_ARM_NEON_OPT > 0 */ +#endif /* PNG_READ_SUPPORTED */