[libpng17] Make symbol prefixing work with the ARM neon optimizations. Also

allow pngpriv.h to be included for preprocessor definitions only, so
it can be used in non-C/C++ files.
This commit is contained in:
John Bowler
2013-02-04 18:00:34 -06:00
committed by Glenn Randers-Pehrson
parent 2969375aa6
commit 9124f3e29a
5 changed files with 53 additions and 29 deletions

View File

@@ -154,10 +154,12 @@ png_realloc_array,(png_structrp png_ptr, png_const_voidp old_array,
}
}
#ifdef PNG_READ_SUPPORTED
/* The potential overflow case. Set the cache counter so libpng will
* not make any more attempts
*/
png_ptr->user_chunk_cache_max = 2;
#endif
return NULL; /* error */
}