summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2015-05-06 20:03:14 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-05-06 20:03:14 -0500
commit8ee821e69a32b0008ecd8d9cb15a7eeb44f287d3 (patch)
tree640abe4a5a9a395e6d309a9ca97483d2f5e281ba /pngread.c
parent279dc3f0bfece0855502d354b400f7bb93d21357 (diff)
downloadlibpng-8ee821e69a32b0008ecd8d9cb15a7eeb44f287d3.tar.gz
[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.
Diffstat (limited to 'pngread.c')
-rw-r--r--pngread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngread.c b/pngread.c
index 6764dbe56..6239503e2 100644
--- a/pngread.c
+++ b/pngread.c
@@ -63,7 +63,7 @@ png_create_read_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
/* In stable builds only warn if an application error can be completely
* handled.
*/
-# if PNG_LIBPNG_BUILD_BASE_TYPE >= PNG_LIBPNG_BUILD_RC
+# if PNG_RELEASE_BUILD
png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN;
# endif
# endif