[libpng16] PNG_RELEASE_BUILD replaces tests where the code depended on the build base

type and can be defined on the command line, allowing testing in beta builds. Back
ported from libpng17.
This commit is contained in:
John Bowler
2015-05-06 20:03:14 -05:00
committed by Glenn Randers-Pehrson
parent 279dc3f0bf
commit 8ee821e69a
7 changed files with 27 additions and 7 deletions

View File

@@ -543,7 +543,7 @@ png_create_write_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
/* App warnings are warnings in release (or release candidate) builds but
* are errors during development.
*/
#if PNG_LIBPNG_BUILD_BASE_TYPE >= PNG_LIBPNG_BUILD_RC
#if PNG_RELEASE_BUILD
png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN;
#endif