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 */